Hi all,
 
I have a very weird problem which doesn't make sense to me. Here is my crontab below which runs at 8:50AM
50 08 * * 1-5 root bash -x /usr/local/admin/bin/helpdesk off >/tmp/help.check 2>&1
 
Now my scripts first line grabs the date/time and puts it into a variable... (as below)
RUNTIME="`date +\"%d %B %Y %H:%M %p\"`"
 
I echoed the debug output to the "/tmp/help.check" file and this is what I got!!!!!
 
++ date +%d %B %Y %H:%M %p
+ RUNTIME=28 November 2001 08:49 AM
How can this run the minute before instead of ON TIME?
My problem is that this script checks the crontab running time against a DB file which has 8:50AM in it and doesn't match..
 
I can easily pass a parameter to say that it's an 8:50 run time even if it runs at 8:48 ot 8:49 yet the $1 parameter says 8:50 but that's a suck way to do it....
 
does crontab do this usually?
 

thanks,
George Vieira
Systems Manager
Citadel Computer Systems P/L

 

Reply via email to