Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

My tip when using cron: Use comments liberally. Say what the command is doing, where to find out more information and write your name so that when I open up the crontab on some system I can actually find out what it is supposed to be doing. Comments are essential in a script which is not under any version control and is shared by many different users.


Your crontabs (as well as all other config files) should be under some form of version control.


Along those lines is etckeeper:

http://fnords.wordpress.com/2009/03/05/etckeeper-chronicles-...

Edit: if you are worried about your crontab files from users then version /var/spool/cron/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: