How to quit crontab -e without overwritting cron

When you finish creating entries and exit the file, the crontab command
copies it into the /var/spool/cron/crontabs directory

Even if you did not make change, you overwrite the content of your crontab !
If you want to exit your crontab editor really without overwritting the crontab, you need to kill yourself.
Ex:CTRL-Z
[2] + Stopped (SIGTSTP)        crontab -e
$ kill –9 %2
$
[2] + Stopped (SIGTTOU)        crontab -e

at Wednesday, August 22, 2012  

0 comments:

Post a Comment

Powered by Blogger.