3 ms·
what if you are managing the crons externally, eg puppet, crontab -e is not always option
by efiala 10y ago
what if you are managing the crons externally, eg puppet, crontab -e is not always option
- Godel_unicode 10y ago1. If you don't have a test process for changes made with puppet, this is hardly a problem with cron. 2. Puppet handled that parsing for you and will throw errors if your syntax is wrong
- hibbelig 10y agoUse /bin/cat as editor. That should work nicely from Puppet.
- _ao789 10y agoI can't tell you the amount of times I've hit -r by mistake and regretted it..
- michaelcampbell 10y agoI can. 0. There, more anecdata. Honestly though, I never use `-e` either. I keep a ~/.crontab and edit that, and then `crontab ~/.crontab`. Voila, backup/time machine/git friendly crontab.
- dajohnson89 10y agoHave a cronjob that backs up your crontab?
- benjojo12 10y agoI got bit by this once, and had to rescue the crontab out off the disk with GNU strings :(