Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

TorgoX (1933)


"Il est beau comme la retractilité des serres des oiseaux rapaces [...] et surtout, comme la rencontre fortuite sur une table de dissection d'une machine à coudre et d'un parapluie !" -- Lautréamont

Journal of TorgoX (1933)

Tuesday July 16, 2002
04:13 AM


[ #6380 ]
Dear Log,

Two lines that belong in every crontab file:

1 1 1 * * /bin/csh -c 'crontab -l | mail -s crontab $MAILTO'

And if you're really ambitious:

1 1 1* * /bin/csh -c 'crontab -l | crontab2english | mail -s crontab $MAILTO'

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Why do you want to mail your crontab to yourself monthly? Hell, my mail client filters cron mail to the trash now.
    • Well, long story short: I have backups of accounts, but I never know where I put them. (Usually in a "very safe place", wherever that is.) However, I /always/ have all my mail files at hand, going back at least a year. When a machine dies or is "replaced", often the crontabs aren't restored right; so I'm always happy I can just pull out the crontab from my mail file.

      I put things in a crontab file (on various machines) so I can forget about those things. So if the crontab file gets lost, if not for my b