SOLARIS 9 Zone :
date command in crontab shows delayed(One Hour) output
Hi folks,
the date command shows the correct date and time, How ever, if the date command executed through crontab in any form of scrip the output shows as one hour delayed, similar to date -u..
Can some one help in this..
++++++++++++++++++++++++++++++++++++++++++
Date command perfectly shows
judi:root:/tmp# date
Fri Feb 15 15:08:03 MET 2013
judi:root:/tmp#
The script used to get the output to test.out
judi:root:/tmp# more test.sh
#!/usr/bin/ksh
DT=`date '+%y%m%d-%H:%M'`
LOG=/tmp/test.out
echo $DT >> $LOG
judi:root:/tmp#
the cron entry used..
* * * * * /tmp/test.sh
output of the script execution (delayed for one hour)
judi:root:/tmp# more test.out
130215-14:03
130215-14:04
130215-14:05
130215-14:06
130215-14:07
130215-14:08
judi:root:/tmp#
judi:root:/tmp# date
Fri Feb 15 15:08:10 MET 2013
judi:root:/tmp#
Moderator's Comments:
|
|
Please use CODE tags. Thank you!
|
|