LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-16-2018, 08:22 AM   #1
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,281

Rep: Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916
this crontab schedule incorrectly ran today


hi, this ran on friday the 13th as expected; it didnt run on saturday or sunday (good); but it ran this morning which is wrong.

Code:
[schneidz@hyper ~]$ uname -a -m -p
Linux hyper 2.6.32-696.23.1.el6.x86_64 #1 SMP Sat Feb 10 11:10:31 EST 2018 x86_64 x86_64 x86_64 GNU/Linux
[schneidz@hyper ~]$ crontab -l
30 4 13 4 1-5 /users/schneidz/bin/hello-world.ksh
does the 5th field override the 3rd field ?
 
Old 04-16-2018, 08:34 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,543

Rep: Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142
One of the more common mistakes with cron is if the day of month or day of week match i.e. it will run when either field matches. Your cron job will run Monday-Friday regardless of the day of month.

https://linux.die.net/man/5/crontab
 
1 members found this post helpful.
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I accidentally ran crontab -r Geminias Linux - General 4 07-21-2014 11:10 AM
[SOLVED] crontab schedule JJJCR Linux - Newbie 3 04-11-2012 05:11 AM
schedule a crontab rupesh_pulikool Solaris / OpenSolaris 7 09-04-2004 10:32 PM
crontab schedule help onlykims Linux - Newbie 2 08-28-2004 01:09 PM
ran a succesful basic Linux class today zaharia LinuxQuestions.org Member Success Stories 3 03-27-2004 04:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:03 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration