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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-23-2010, 06:28 PM
|
#1
|
|
Member
Registered: Oct 2009
Posts: 116
Rep:
|
cronjob
Hello,
OS: Linux
I need to run the files everyday at 11.00 pm (Monday to Friday).
How would I put on cronjob?
I have files ready.
thanks
|
|
|
|
04-23-2010, 06:47 PM
|
#2
|
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,476
|
|
|
|
|
04-23-2010, 10:52 PM
|
#3
|
|
Member
Registered: Oct 2009
Posts: 116
Original Poster
Rep:
|
Quote:
Originally Posted by AlucardZero
|
Are they correct?
for 11.00 pm
00 23 * * 1-5
and for 11.05 pm
05 23 * * 1-5
|
|
|
|
04-23-2010, 11:08 PM
|
#4
|
|
Senior Member
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,017
Rep:
|
Quote:
Originally Posted by dnaqvi
Are they correct?
for 11.00 pm
00 23 * * 1-5
and for 11.05 pm
05 23 * * 1-5
|
https://help.ubuntu.com/community/CronHowto
Which linux distribution are you on?
|
|
|
|
04-26-2010, 01:52 AM
|
#5
|
|
Member
Registered: Oct 2009
Location: Bangalore
Distribution: Redhat Linux, Solaris, CentOS
Posts: 32
Rep:
|
Yes that is correct.
Basically The Crontab has 6 fields including the job/command you want to execute.
1 - Minute [0-60]
2 - Hours [0-23]
3 - Day Of Month [1-31]
4 - Month [1-12]
5 - Day Of Week [0-6 - where 0 is for Sunday].
Hence for your requirement ie "I need to run the files everyday at 11.00 pm (Monday to Friday)" the crontab entry would be something like below :-
00 23 * * 1-5 <job/command you want to run>
Note :- Crond is the daemon for cronjobs which checks the Crontab file every 2 mins for any changes/updation etc.
Regards,
RHADMN
|
|
|
|
04-26-2010, 04:05 AM
|
#6
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 12,003
|
Quote:
Originally Posted by dnaqvi
Are they correct?
for 11.00 pm
00 23 * * 1-5
and for 11.05 pm
05 23 * * 1-5
|
Well, what happened when you TRIED it? Were ALL of the how-to docs on CRON impossible to understand??
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
cronjob help
|
meeh |
Linux - General |
1 |
03-26-2004 11:41 AM |
|
Cronjob
|
engnet |
Linux - Networking |
6 |
03-03-2004 09:21 AM |
|
cronjob
|
ugob |
Linux - Software |
0 |
03-03-2004 09:20 AM |
|
Su in a cronjob
|
michedlp |
Programming |
3 |
11-06-2003 08:30 AM |
|
cronjob
|
FastEddy |
Linux - General |
1 |
04-12-2003 09:52 PM |
All times are GMT -5. The time now is 05:40 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|