ubuntu:cron:schedule_a_cron_job_to_run_on_specified_months

This is an old revision of the document!


Ubuntu - Cron - Schedule a Cron Job to Run on Specified Months

* * * jan,may,aug * /script/script.sh

The above crontab will make cron execute the given script at every minute in January, May, and August.

The same command can be written using numeric values only as shown below.

* * * 1,5,8 * /script/script.sh
ubuntu/cron/schedule_a_cron_job_to_run_on_specified_months.1576194897.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki