瀏覽代碼

Change logging

George Jones 6 月之前
父節點
當前提交
5a8104b614
共有 6 個文件被更改,包括 8 次插入5 次删除
  1. 0 0
      README.org
  2. 0 0
      bin/exifSetDatesThisDir
  3. 0 0
      bin/obsolete/.link2home.ignore
  4. 0 0
      bin/obsolete/.link2home.ignore.default
  5. 7 4
      bin/orgwatch.sh
  6. 1 1
      rc.local/l.sh

+ 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