Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-08-2006, 03:44 PM   #1
Registered: May 2006
Posts: 39

Rep: Reputation: 15
crontab 24-hour time

I'm in the midst of moving scripts (running Pro*C programs) from a UNIX server over to Linux. These scripts are executed according to how the crontab is set up for each script. While doing some testing on Linux, I've noticed that my cronjob doesn't seem to go off after 1 pm (when you'd need to add 12 to the hour to let it know you mean 'p.m.' and not 'a.m.'); this morning, for instance, I ran my cronjob several times (obviously re-editing the cron file many times) with no problem. But in the afternoon, the job wouldn't go off, as if there was a problem with an hour value larger than 12. Has anyone ever heard of something like this?
Old 05-08-2006, 06:13 PM   #2
Senior Member
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,072

Rep: Reputation: 323Reputation: 323Reputation: 323Reputation: 323
Run crontab -l and post the output here, so people can see what you've actually got. Also, check your email (for the userid who's cron is giving problems) to see if any error messages are being sent.
Old 05-09-2006, 07:24 AM   #3
Registered: May 2006
Posts: 39

Original Poster
Rep: Reputation: 15
current cron

00 1 * * * . /FactorySys/scripts/execute_script.scr >> /FactorySys/logs/read_cron.log 2>&1

This is what I currently have, though before leaving work Monday, I changed it to run after midnight and when I arrived this morning, it had executed. So it seems to be something about wanting to run it after 1 pm when you'd have to add 12 to the hour to make it 24-hour time.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
am/pm verses 24 hour time CouchMaster SUSE / openSUSE 8 05-20-2015 10:13 AM
FTP 4 hour time difference... Santinelli Linux - Enterprise 1 09-08-2005 11:04 AM
linux time changes 1 hour -- after reboot mrconover Linux - Software 4 10-07-2004 05:13 PM
Time updated by ntp is 1 hour behind jon1591 Linux - Newbie 2 06-21-2004 02:34 PM
Why is the time always an hour behind? aaa LQ Suggestions & Feedback 6 07-23-2003 12:34 PM

All times are GMT -5. The time now is 12:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration