Schedule script to ...
 

Schedule script to run once in a month  


admin
Posts: 93
Admin
(@mjv119gmail-com)
Member
Joined: 5 years ago

I need a simple trick to automatically execute a shell scrip at one time on start of every month… No concern regarding exact day or time…

It will reduce one of our monthly task in our office… ūüôā 

2 Replies
Gnana
Posts: 25
(@gnana)
Eminent Member
Joined: 3 months ago

Schedule the script using crontab.

If you are using crontab, add the below entry to the crontab. This schedule your script to run at 00:00 in first day of every month.

0 0 1 * * /script_name
Reply
Alan
Posts: 35
 Alan
(@alan)
Eminent Member
Joined: 3 months ago

Try this:

@monthly /script_name

This will exactly run the script at 12:00 AM/00:00 on 1st of every month.

Reply

Leave a reply


 
Preview 0 Revisions Saved
Share: