1753846 Members
8261 Online
108807 Solutions
New Discussion юеВ

crontab

 
SOLVED
Go to solution
Taulant Shamo
Frequent Advisor

crontab

How can i schedule in crontab to run a file every first day of the Month at 01:00.

0 1 * * * /backup_slb/backup_cron

Thanks
Taulant
4 REPLIES 4
Pete Randall
Outstanding Contributor
Solution

Re: crontab

Maybe I don't understand your quesstion, but
0 1 1 * * /backup_slb/backup_cron
would run the job on the first day of the month at 01:00.


Pete

Pete
Taulant Shamo
Frequent Advisor

Re: crontab

Every month the first day
Stefan Schulz
Honored Contributor

Re: crontab

Hi Taulant,

what Pete postet is exactly what you need. This will run the job on the first day of every month.

Have a look at man crontab for a understanding what this line means:

0 1 1 * * /backup_slb/backup_cron

this means minute 0 of hour 1 of day 1 of every month whatever weekday it is do /backup_slb/backup_cron.

Or in your words on the first day of every month at 01.00 o'clock.

Hope this helps

Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.
Taulant Shamo
Frequent Advisor

Re: crontab

Thank you for your help.