LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-23-2010, 09:22 AM   #1
loopoo
Member
 
Registered: Aug 2005
Posts: 40

Rep: Reputation: 15
Crontab configuration


Hi,

Is there a way to configure a process to be lanched in the "n"th working day?
Let's say n=5. In this case, if the 5th of the month is on Saturday, then the 5th working day will be on Monday so I would like to launch the process on the 7th.
The same when the 5th of the month is on Monday, it means that it's only the 3rd working day, so I would need to launch the process on Wednesday - the 7th of the month.

Thanks in advance,
Chris
 
Old 09-23-2010, 11:39 AM   #2
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
The cron entries are as follows:

minute hour day_of_month month day_of_week

Where day_of_week is 0-6 and 0 is Sunday.

Regards,

Alunduil
 
Old 09-24-2010, 01:01 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Here's a nice clear article on cron http://www.adminschoice.com/docs/cro...Crontab%20file
 
  


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
Crontab configuration question RIPNHL2005 Linux - Newbie 4 01-26-2010 03:16 PM
linux crontab vs unix crontab ytd Linux - General 2 08-09-2009 05:07 AM
Crontab configuration for particular day ZAMO Linux - Server 2 12-13-2008 04:23 AM
replaced crontab, now should get crontab back to what it was raminn Linux - Newbie 2 10-20-2008 07:15 PM
system-wide crontab in /etc/crontab ner Linux - General 2 11-18-2003 12:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:50 PM.

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