getting the date in crontab command

February 26th, 2010 | Categories: Linux | Tags: ,

getting the date in crontab command – The UNIX and Linux Forums

date +”%Y%m%d”  -> date +”\%Y\%m\%d”

man crontab

The sixth field of a line in a crontab file is a string that is executed by the shell at the specified times. A percent character in this field (unless escaped by \) is translated to a NEWLINE character.

No comments yet.