always always use the full path i.e. /usr/bin/date and can you quantify "doesnt work"?
Jason On Thu, Feb 01, 2007 at 09:05:14PM -0500, S B wrote: > Hi > > 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? > > Simon... > -- > TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug > TriLUG Organizational FAQ : http://trilug.org/faq/ > TriLUG Member Services FAQ : http://members.trilug.org/services_faq/ -- ================================================ | Jason Welsh [EMAIL PROTECTED] | | http://monsterjam.org DSS PGP: 0x5E30CC98 | | gpg key: http://monsterjam.org/gpg/ | ================================================ -- TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ : http://trilug.org/faq/ TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
