Re:Cron checker
by efiala on Saturday July 16, 2016 @10:37AM
(#12106456)
what if you are managing the crons externally, eg puppet, crontab -e is not always option
[ Parent
| on HN ]
Re:Cron checker
by Godel_unicode on Saturday July 16, 2016 @12:01PM
(#12106752)
1. 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
I can't tell you the amount of times I've hit -r by mistake and regretted it..
Re:Cron checker
by michaelcampbell on Saturday July 16, 2016 @03:46PM
(#12107617)
I 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.
I got bit by this once, and had to rescue the crontab out off the disk with GNU strings :(
Re:Cron checker
by dajohnson89 on Saturday July 16, 2016 @05:14PM
(#12107899)
Have a cronjob that backs up your crontab?