LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   CRONTAB Query (https://www.linuxquestions.org/questions/linux-general-1/crontab-query-333417/)

Keith Birch 06-14-2005 07:33 AM

CRONTAB Query
 
Hi Guys...

Its been a while since ive done crontabbing, as the server has been running very sweetly for the last 3 years. Could you please clarify wether I am correct with my below entry:

0 0 0 * 1 logrotate /blah/blah/blah

Am I correct in saying that this will run every monday in every month?

Could you also remind me how to make it run at 3:00am every monday of every month?

Cheers for any help provided.

Keith

trickykid 06-14-2005 08:13 AM

Your wanting on every Monday at 3:00am each Month? Am I reading that right? If you want it to run every Monday at 3am, its going to run every month then..

Code:

0  3  * * 1  logrotate /blah/blah
That would do it every Monday at 3:00am.. You can also specify the day by using Mon, Tue, Wed and so on.. instead of the numerical value.

man crontab for more details..


All times are GMT -5. The time now is 06:36 AM.