Update of /cvsroot/bobs/bobs/bash/init.d
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17324/bash/init.d
Modified Files:
cmdloopd.in
Log Message:
Show date and time on all records in bobs.log
Index: cmdloopd.in
===================================================================
RCS file: /cvsroot/bobs/bobs/bash/init.d/cmdloopd.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- cmdloopd.in 1 Apr 2004 03:28:23 -0000 1.2
+++ cmdloopd.in 3 Nov 2004 00:57:24 -0000 1.3
@@ -22,7 +22,9 @@
# Start daemon.
echo -n "Starting cmdloop: "
- ${CMDLOOP_DIR}/cmdloop >> $LOGFILE 2>&1 &
+ #${CMDLOOP_DIR}/cmdloop >> $LOGFILE 2>&1 &
+ ${CMDLOOP_DIR}/cmdloop 2>&1 \
+ | while read; do echo "$(date +'%F %T'): $REPLY" >> $LOGFILE; done &
RETVAL=$?
if [ $RETVAL = 0 ];then
echo 'OK'
|