LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 08-30-2004, 10:24 PM   #1
stand
LQ Newbie
 
Registered: Aug 2002
Posts: 23

Rep: Reputation: 15
Schedule by day of the week


Hi,

I want to schedule a program to run by the day of the week.
eg. Every Mon to Fri at 2 AM run A.pl
Every Sat run B.pl

I'm not sure if it can be done with Cron job.

Thanks,
Stand
 
Old 08-30-2004, 11:49 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, SolydK 2013
Posts: 7,434

Rep: Reputation: 134Reputation: 134
"I want to schedule a program to run by the day of the week.
eg. Every Mon to Fri at 2 AM run A.pl
Every Sat run B.pl"

The fifth cron field is day of week. Days can be either numbers or letters. You can specify multiple days with a hyphen.

Every Mon to Fri at 2 AM run A.pl
0 2 * * 1-5 bash /pathname/A.pl

Every Sat run B.pl"
0 1 * * sat bash /pathname/B.pl

---------------------
Steve Stites
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
What applications do you use day to day? alan_h404 General 11 10-16-2005 07:09 AM
Why not use Astaro as a normal day to day desktop?? chutsu Linux - General 1 10-08-2005 11:42 PM
Suse 9.3 Korganizer Custom Schedule, or Save Entire Day as Template -swimmer- Linux - Newbie 0 08-31-2005 09:26 PM
Multicount in PHP , displays visits on current day, week, month, year and total visit xbaez Programming 1 04-24-2005 02:50 AM
Schedule, AGAIN!! erathomor Linux - General 0 04-11-2002 11:25 AM


All times are GMT -5. The time now is 01:38 PM.

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