water has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to convert a crontab recurrence string to an English representation, suitable for displaying to non-technical folks. I didn't see anything like this on CPAN. Anyone have any suggestions?

Thanks!

water

  • Comment on converting crontab recurrence pattern to english

Replies are listed 'Best First'.
Re: converting crontab recurrence pattern to english
by jmcnamara (Monsignor) on May 12, 2005 at 11:10 UTC

    See crontab2english. It is on CPAN, just very well hidden. ;-) From the pod:
    Example output: % crontab2english | less Setting env var MAILTO to hulahoops@polygon.int Command: (line 2) Run: /bin/csh -c 'perl ~/thang.pl | mail -s hujambo root' At: 8:10am on the 15th of every month Command: (line 5) Run: df -k At: 5:40am every day Command: (line 7) Run: ls -l /tmp At: 6:50am every Monday

    --
    John.