User Tools

Site Tools


ubuntu:cron:schedule_cron_to_execute_a_job_at_8_pm_on_monday

Ubuntu - Cron - Schedule Cron to Execute a Job at 8 pm on Monday

0 20 * * Mon /bin/sh script.sh

The above crontab command invokes the cronjob at 8 pm on every Monday.

This command is the same as the next command.

0 20 * * 7 /bin/sh script.sh

7 in the last time field denotes Monday.

ubuntu/cron/schedule_cron_to_execute_a_job_at_8_pm_on_monday.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki