October 02, 2003

Translate your cron entries into english

Update: Just in case it's not clear, I didn't write this script, the amazing Sean Burke did.

crontab2english.pl - Extremely useful utility -- in Perl, of course -- for ensuring that you have the correct time specification in your crontab. For instance, after downloading, copying to /usr/local/bin, chmod'ing, and stripping the file extension I can do:

cwinters@www cwinters $ crontab2english
...
Command: (line 7)
  Run: /usr/bin/wget -O 
   .../openinteract-cvsroot-`/bin/date +%Y-%m-%d`.tar.bz2 
   http://cvs.sourceforge.net/cvstarballs/openinteract-cvsroot.tar.bz2
  At: 8:10am    every day

Command: (line 8) Run: perl /home/cwinters/bin/cleanup_backups /home/cwinters/oi_backup At: 0:10am on the first of every month </pre>

Next: Presentation on SPOPS to pgh.pm
Previous: Northern Virginia NFJS plans set