unlike normal bash scripts, you can’t really use the back ticks to execute a certain command like so

DATE=`date +%F`

In crontab, you have to use the $(), eg

$(date +\%F)

Share and Enjoy:

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • StumbleUpon
  • Technorati
  • LinkedIn
  • MySpace
  • Slashdot
  • TwitThis
  • Yahoo! Buzz