User Tools

Site Tools


ubuntu:cron:schedule_cron_to_execute_a_job_twice_a_day

This is an old revision of the document!


Ubuntu - Cron - Schedule Cron to Execute a Job Twice a Day

0 5,17 * * * /scripts/script.sh

The above crontab command will make cron execute the script.sh executable at 5 AM and 5 PM daily.

Notice how the comma has been used to denote multiple hour values.

You can add more values using a comma-separated list to perform the task more than twice.

ubuntu/cron/schedule_cron_to_execute_a_job_twice_a_day.1576192830.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki