I just want to pause everyhthing. DOn't execute crontab -l.

link|improve this question

feedback

4 Answers

up vote 7 down vote accepted

crontab -e then comment out each line you don't want to run with #.

link|improve this answer
feedback

Do you have root access? Just pause cron

sudo /etc/init.d/crond stop

Then restart it when you're ready

sudo /etc/init.d/crond start
link|improve this answer
That is assuming you want to stop crontab for all users including root. The selected answer, and kubanskamac's answer would do it for just the current (desired?) user. – Kevin K Dec 15 '09 at 0:20
feedback
crontab -l > my_cron_backup.txt   &&   crontab -r     # save everything and remove everything
...
crontab my_cron_backup.txt     # restore from file

crontab -l     # enjoy
link|improve this answer
feedback

If you are using vi as editor, then just enter :%s/^/#/ in command mode. In all lines (%), it substitutes (s///) the begin of line (^) with a hash (#).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.