LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 04-24-2013, 01:47 AM   #1
b_boy
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Rep: Reputation: Disabled
How often does this cron run


How often does this cron run

04,34 07-18 * * mon-fri /bin/custom.sh

Last edited by b_boy; 04-24-2013 at 01:48 AM. Reason: incorrect info
 
Old 04-24-2013, 02:18 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Quote:
Originally Posted by b_boy View Post
How often does this cron run

04,34 07-18 * * mon-fri /bin/custom.sh
- 0 times a day (on Saturday and Sunday),
- 22 times a day (on Monday -> Friday),
- 110 times a week,
- 5720 times a year.

- Linux / Unix Command: crontab
- Crontab – Quick Reference
- DuckDuckGo

Last edited by druuna; 04-24-2013 at 05:55 AM. Reason: fixed a typo
 
1 members found this post helpful.
Old 04-24-2013, 02:23 AM   #3
b_boy
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
- 0 times a day (on Saturday and Sunday),
- 22 times a day (on Monday -> Friday),
- 110 times a week,
- 5720 times a year.

- Linux / Unix Command: crontab
- Crontab Quick Reference
- DuckDuckGo
thanks for the reply

Can you tell me what times it run? is it every 30 min between 07:00 and 18:00
 
Old 04-24-2013, 02:27 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
You might want to check the links I provided, all the answer can be found there.
 
Old 04-28-2013, 04:18 PM   #5
fredak
Member
 
Registered: Apr 2013
Location: Montgeron near Paris
Distribution: Slackware
Posts: 32

Rep: Reputation: Disabled
Quote:
Originally Posted by b_boy View Post
thanks for the reply

Can you tell me what times it run? is it every 30 min between 07:00 and 18:00

yes !


does your shell write some timestamp into some logfile ?

if no then you could do as follow :

04,34 07-18 * * mon-fri /bin/custom.sh >> /my_path/custom.`date +\%y\%m\%d_\%H:\%M.log`

then you'll see by yourself whenever it runs
 
1 members found this post helpful.
Old 04-28-2013, 05:04 PM   #6
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 1,436

Rep: Reputation: 599Reputation: 599Reputation: 599Reputation: 599Reputation: 599Reputation: 599
Quote:
Originally Posted by b_boy View Post
How often does this cron run

04,34 07-18 * * mon-fri /bin/custom.sh
It will run 24 times each day Monday through Friday, the first at 07:04 and the last at 18:34.
 
2 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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Cron run fails at random points, throws: Attempting to re-run cron while.... Nighteyes Linux - Newbie 2 06-22-2012 05:08 AM
script run fine from ./ but when put in cron does not run j-me Linux - Server 6 06-16-2012 10:02 AM
Debian daily cron job won't run, but does run in cron.hourly. sandersch Linux - General 7 05-24-2012 01:50 AM
[SOLVED] Partial list with ls-l in bash script run in cron but full list run from command line redgshost Linux - General 29 01-16-2011 12:14 PM
did cron run??? why not??? watcher69b Linux - Server 2 07-03-2008 01:13 AM


All times are GMT -5. The time now is 05:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration