Re: date '+%a %b %e %Y' does not work from within crontab.
On Fri, Mar 01, 2002 at 11:19:14PM -0600, DvB wrote:
> Cameron Kerr <firstname.lastname@example.org> writes:
> > 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)
> To tell the truth, I just had the same problem on a solaris server at
> work... my process didn't produce any logs for a few days until I went
> to check and realized what was going on. I wouldn't think solaris used
> vixie, but I could be wrong. I'll have to check the man page on Monday.
> If anyone knows how to fix this, I'd love to find out too :-\
But your stuff in a short script and execute the Script via cron.
Lamer! :)\nLokaler Admin mit enormen Rechten[tm]
[Christian Schneider und Jens Himmelrath in alt.hacker.org-gcf]