cron question
Lowell Gilbert
freebsd-questions-local at be-well.no-ip.com
Wed Aug 6 17:30:45 PDT 2003
Jim Pazarena <paz at qcislands.net> writes:
> I am trying to grep for a record from a crob job...
> the entry looks like this:
> 58 23 * * * grep `date "+%Y-%m-%d "` /log/fylename | mail admin
>
> cron complains:
> Syntax error: EOF in backquote substitution
>
> could someone enlighten me please?
You've got a quoting nightmare there.
Try wrapping it up in a shell script to be called from cron,
and you won't have to worry what cron does to the tokens.
More information about the freebsd-questions
mailing list