LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-08-2006, 03:44 PM   #1
cleopard
Member
 
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
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
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
cleopard
Member
 
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:50 PM.

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