Changeset 235


Ignore:
Timestamp:
Jan 18, 2011 5:24:51 PM (14 years ago)
Author:
jemian
Message:

make most output look like comments in log file

Location:
pvrrd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified pvrrd/epics2rrd.csh

    r209 r235  
    5353        /bin/rm ${PIDFILE}
    5454        /bin/echo ${PID} > ${PIDFILE}
    55         /bin/echo "started ${PID}: ${PYTHON} ${SCRIPT}"
     55        /bin/echo "# started ${PID}: ${PYTHON} ${SCRIPT}"
    5656        breaksw
    5757  case "stop":
     
    6060        setenv NOT_EXISTS $?
    6161        if (${NOT_EXISTS}) then
    62              /bin/echo "not running ${PID}: ${SCRIPT}"
     62             /bin/echo "# not running ${PID}: ${SCRIPT}"
    6363        else
    6464             kill ${PID}
    65              /bin/echo "stopped ${PID}: ${SCRIPT}"
     65             /bin/echo "# stopped ${PID}: ${SCRIPT}"
    6666        endif
    6767        breaksw
  • TabularUnified pvrrd/epics2rrd.py

    r213 r235  
    3030message += " starting on HOST=" + os.environ['HOST']
    3131message += " by user=" + os.environ['USER']
    32 print message
     32print "# ", message
    3333sys.stdout.flush()
    3434
     
    7878        if len(notconnected_msgs):
    7979            for msg in notconnected_msgs:
    80                 print msg
    81         print time.ctime()," PID=" + repr(os.getpid()),
     80                print "# ", msg
     81        print "# ", time.ctime()," PID=" + repr(os.getpid()),
    8282        print "   %d of %d PVs connected" % (pvcount, len(db))
    8383        nexttime = time.time() + update_interval_seconds  # set next update time
Note: See TracChangeset for help on using the changeset viewer.