View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 08-30-2004, 10:24 PM   #1
LQ Newbie
Registered: Aug 2002
Posts: 23

Rep: Reputation: 15
Schedule by day of the week


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

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

Old 08-30-2004, 11:49 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,661

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

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
0 2 * * 1-5 bash /pathname/

Every Sat run"
0 1 * * sat bash /pathname/

Steve Stites


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
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 12:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration