Hi,
I have a nightly backup running via cron....
0 4 * * 1-5 /usr/local/bin/perform_backup >/u00/backup/`date +"%d-%b-%
Y"`.log 2>&1
The problem is with name of the .log file I'm trying to create. The
date command seems to be issuing the 'whole' date format instead of "%d-
%b-%Y" and there is no .log appended to the end eg. I am getting:
Tue Feb 15 04:00:00 GMT 2000
as the name of the log file. Can I do this kind of date formatting in
cron?
Sent via Deja.com http://www.deja.com/
Before you buy.