[csw-devel] SF.net SVN: opencsw:[460] catalog_signatures/bin/daemon_verify

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Thu Jul 21 05:20:31 CEST 2011


Revision: 460
          http://opencsw.svn.sourceforge.net/opencsw/?rev=460&view=rev
Author:   bdwalton
Date:     2011-07-21 03:20:30 +0000 (Thu, 21 Jul 2011)

Log Message:
-----------
alter daemon_verify so that date stamp output is nicer

Signed-off-by: Ben Walton <bwalton at opencsw.org>

Modified Paths:
--------------
    catalog_signatures/bin/daemon_verify

Modified: catalog_signatures/bin/daemon_verify
===================================================================
--- catalog_signatures/bin/daemon_verify	2011-07-21 03:20:11 UTC (rev 459)
+++ catalog_signatures/bin/daemon_verify	2011-07-21 03:20:30 UTC (rev 460)
@@ -5,15 +5,19 @@
 DAEMON="${APP_BIN}/catalog_gpg"
 
 while /bin/true; do
-    echo -n "$(date +%c): Checking; "
+
     # test that the passphrase is still cached...
     gpg --yes --batch --homedir "${APP_GPG}" --clearsign --armor --output "${APP_TMP}/$(basename ${DAEMON}).asc" "${DAEMON}"
 
     if [ $? -eq 0 ]; then
-	echo "Ok."
+	echo "$(date +%c): Checking; Ok."
 	sleep 60
     else
-	echo "AHA!  The passphrase has expired...press ENTER"
+	reset
+	clear
+	# send mail here...
+	echo "$(date +%c): AHA!  The passphrase has expired...[Mail sent.]"
+	echo "$(date +%c): Press ENTER to continue monitoring."
 	read CONT
     fi
 done


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list