On Sun, Sep 07, 2003 at 10:44:18PM -0400, Jason Lieurance wrote: > Thank you for the response. Does the date part (Date=`date +"%Y-%m-%d"`) go as part > of the cron job? Thanks again.
% characters are special in crontabs -- you need to escape them using
a backslash:
0 0 * * * mail -s log [EMAIL PROTECTED] < /var/log/`date +"\%Y-\%m-\%d"`-error_log
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK
pgp00000.pgp
Description: PGP signature
