ubuntu:cron:schedule_cron_to_execute_a_job_twice_a_day
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.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1