From: Thomas Nikolajsen Date: Wed, 15 Jul 2009 22:26:21 +0000 (+0200) Subject: periodic(8): Add time stamps to log X-Git-Tag: v2.5.1~52 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/b61aeef8efa55b5868447f0fe973874b1614c38d periodic(8): Add time stamps to log --- diff --git a/usr.sbin/periodic/periodic.sh b/usr.sbin/periodic/periodic.sh index b1d2fd33c7..583c27a5c0 100644 --- a/usr.sbin/periodic/periodic.sh +++ b/usr.sbin/periodic/periodic.sh @@ -71,6 +71,7 @@ do { empty=TRUE processed=0 + echo "-- Start of $arg output -- `date`" for dir in $dirlist do for file in $dir/* @@ -78,6 +79,7 @@ do if [ -x $file -a ! -d $file ] then output=TRUE + echo "-- Start of $arg $file output -- `date`" processed=$(($processed + 1)) $file $tmp_output 2>&1 rc=$? @@ -100,7 +102,7 @@ do echo "No output from the $processed file$plural processed" else echo "" - echo "-- End of $arg output --" + echo "-- End of $arg output -- `date`" fi } | eval $pipe done