Caner.B
23rd March 2002, 13:10
Hi,
I need the date and closing time of baan .
Is there a log file where I can see the date and time when rc.start and rc.stop has run

Thanks
Caner

victor_cleto
23rd March 2002, 15:22
For the start you can see the date/time of the processes of Baan. For the stop (and for the start), log.licd6.1 shows the start/stop times of the license monitor, so you can get an idea from this.

But the best, If you need to keep a log of it, just update your rc.start and rc.stop scripts, by adding the following to them at the end:

LOG_RC=$BSE/log/log.rc # log filename
SCRIPT_RC=$(basename $0) # name of current script
USER_RC=`whoami` # user running the script
DATE_RC=`date +"%Y-%m-%d[%X]"` # date/time format of the Baan logs
# the next logs the info, in a Baan typical format (I=information)
echo "${DATE_RC}:I:${USER_RC}: starting ${SCRIPT_RC}" >> ${LOG_RC}

Note: I build the above as standard as possible, so you can use it on all your rc scripts, just adapt the blue text accordingly to the script or message you want to transmit.