Re: date '+%a %b %e %Y' does not work from within crontab.
On Fri, 1 Mar 2002, Shaul Karl wrote:
>
>Should
>
> date '+%a %b %e %Y'
>
>work from within crontab?
It likely won't with Vixie Cron. IIRC, Vixie Cron uses the % character
as a newline/comment. Here's the relevant part from crontab(5)
The ``sixth'' field (the rest of the line) specifies the
command to be run. The entire command portion of the
line, up to a newline or % character, will be executed by
/bin/sh or by the shell specified in the SHELL variable of
the cronfile. Percent-signs (%) in the command, unless
escaped with backslash (\), will be changed into newline
characters, and all data after the first % will be sent to
the command as standard input.
Cameron Kerr
--
cameron.kerr@paradise.net.nz
http://homepages.paradise.net.nz/~cameronk/
Reply to: