[rescue] Speaking of backups, scripting division

gsm at mobileye.com gsm at mobileye.com
Sun Nov 10 14:43:38 CST 2002


Sheldon T. Hall wrote:
> Is there an easy way to turn a crontab entry into something a little easier
> on the eyes?  Specifically, I want to turn the minute-hour-day part of a
> crontab line into a date.
> 
> For example, I have a line in root's crontab that reads
> 
> 59 02 * * 3 /usr/local/bin/backup_automatic
> 
> And I'd like to change the "59 02 * * 3" into a real date, so I can mail
> myself a reminder that says something like
> 
> "Next backup scheduled for Wednesday, November 13, at 02:59"
> 
> Now, I might be able to do that with a bunch of scripting, but I'm sure
> someone on the list has already worked it out and knows the secret lick....

No, but at is pretty flexible: "at 0259 November 13" works.

"at -l" returns: 2       2002-11-13 02:59 a gsm

Geoff

-- 
Geoffrey S. Mendelson
MobilEye Vision Technologies Ltd, R.M.P.E House, 10 Hartom St.
Har Hotzvim, Jerusalem, 91450 Israel Tel: +972-2-5417-356 Cell: +972-55-667-090



More information about the rescue mailing list