Browse Source

Change logging

George Jones 6 months ago
parent
commit
5a8104b614

+ 0 - 0
README.org


+ 0 - 0
bin/exifSetDatesThisDir


+ 0 - 0
bin/obsolete/.link2home.ignore


+ 0 - 0
bin/obsolete/.link2home.ignore.default


+ 7 - 4
bin/orgwatch.sh

@@ -3,8 +3,11 @@
 #
 # This should be run out of cron periodically
 #
+# Logs to /dev/tty and $LOGFILE
 
-echo
-echo "--- Orgwatch `date` ---"
-/home/gmj/bin/orglinks.sh
-/home/gmj/bin/autocommit.sh
+LOGFILE=/home/gmj/var/log/orgwatch.log
+
+echo "--- Orgwatch `date` ---" |& tee /dev/tty >> ${LOGFILE}
+/home/gmj/bin/orglinks.sh |& tee /dev/tty >> ${LOGFILE}
+/home/gmj/bin/autocommit.sh |& tee /dev/tty >> ${LOGFILE}
+echo |& tee /dev/tty >> ${LOGFILE}

+ 1 - 1
rc.local/l.sh

@@ -31,7 +31,7 @@ fi
 # For good measure "sudo chattr +a $LOGTO"
 
 function l() (
-    NOW=`date +%Y-%M-%d:%H:%m:%S`
+    NOW=`date +%Y-%m-%d:%H:%M:%S`
 
     if  [  $# == 0 ]; then
         warn Nothing to log