Posted By

kitzelh on 10/16/09


Tagged


Versions (?)

Programmatically Edit Crontab


 / Published in: Bash
 

  1. # Disable all cron jobs
  2. EDITOR='perl -pi -e s/^/#off#/' crontab -e; crontab -l
  3.  
  4. # Enable all cron jobs
  5. EDITOR='perl -pi -e s/^#off#//' crontab -e; crontab -l

Report this snippet  

You need to login to post a comment.