I'm attempting to set some variables with the output of 'date' in my
crontab but for some reason they are not being evaluated.


YESTERDAY=$(date +%Y%m%d -d yesterday)
* * * * * root echo $YESTERDAY

When cron runs that $YESTERDAY is set to "date +%Y%m%d -d yesterday"
Why doesn't this work, and how do I get it to work?


-- 
Jeff Bearer, RHCE
Webmaster, PittsburghLIVE.com
Winner 2002 Eppy Award, Best U.S. Newspaper Website



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to