If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Crontab to run every Monday

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-31-07, 10:43
oluoch oluoch is offline
Registered User
 
Join Date: Jan 2004
Posts: 15
Crontab to run every Monday

Hello Team,
I have a script that is responsible to query a database and collect data. I need to schedule this script in the crontab to run at 07:15Hrs every monday, every month of the year. All i have managed to include in the crontab is: 15 07 * * *

This crontab line executes every day at 07:15 which is not what i want.

Any idea to schedule it run only on Mondays at 07:15?

Thanks all.
Reply With Quote
  #2 (permalink)  
Old 01-31-07, 17:42
Tyveleyn Tyveleyn is offline
Registered User
 
Join Date: Aug 2006
Location: The Netherlands
Posts: 248
Code:
15 7 * * 1 /usr/local/whatever
Examples can be found everywhere, like here: http://www.die.net/doc/linux/man/man5/crontab.5.html

Last edited by Tyveleyn; 01-31-07 at 17:46.
Reply With Quote
  #3 (permalink)  
Old 02-01-07, 06:53
oluoch oluoch is offline
Registered User
 
Join Date: Jan 2004
Posts: 15
Thanks so much Tyveleyn , i have tried it and it works so well.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On