[TriLUG] dayname in cron ?
merlin180 at hotmail.com
Thu Feb 1 21:05:14 EST 2007
I'm trying to redirect the output of a cron job to a file with the current day in the filename. The following demo works but includes the full date:
*/1 * * * * echo hello >/var/test-$(date).txt
so I'm trying to pass the %a fomat string to 'date':
*/1 * * * * echo hello >/var/test-$(date +"%a").txt
however this (and numerous other variations) don't work - any suggestions?
More information about the TriLUG