using variables in cron
Jan.20, 2010 in
Blog
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)
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)
Leave a Reply