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 - 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, 07:22 AM   #1
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
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, 07:34 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,750

Rep: Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929
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



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 10:10 AM
[SOLVED] crontab schedule JJJCR Linux - Newbie 3 04-11-2012 04:11 AM
schedule a crontab rupesh_pulikool Solaris / OpenSolaris 7 09-04-2004 09:32 PM
crontab schedule help onlykims Linux - Newbie 2 08-28-2004 12:09 PM
ran a succesful basic Linux class today zaharia LinuxQuestions.org Member Success Stories 3 03-27-2004 03:34 AM

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

All times are GMT -5. The time now is 06:23 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
Open Source Consulting | Domain Registration