How to quickly disable a single job in crontab
Simply edit your cron time to run every February 30. ;)
* * 30 2 * this_job_will_never_run.sh
This is especially helpful for those using a GUI to manage their cronjobs (i.e. cPanel, Plesk, etc.) and don't have access to the actual cron file.
The quickest way would be to edit the crontab file (which can be done by typing crontab -e
) and simply comment the job you want disabled. Comment lines in crontab start with a #
.
0 0 1 * * this_job_i_want.sh
# uncomment below to enable
# 0 0 2 * * this_job_i_dont_want.sh