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 |
|
Quote:
for 11.00 pm 00 23 * * 1-5 and for 11.05 pm 05 23 * * 1-5 |
Quote:
Which linux distribution are you on? |
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 |
Quote:
|
All times are GMT -5. The time now is 02:51 PM. |