Date: 06 Aug 2003 20:30:37 -0400 From: Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com> To: Jim Pazarena <paz@qcislands.net> Cc: freebsd-questions@freebsd.org Subject: Re: cron question Message-ID: <44r83ypavm.fsf@be-well.ilk.org> In-Reply-To: <20030805010855.GA34731@qcislands.net> References: <20030805010855.GA34731@qcislands.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Jim Pazarena <paz@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44r83ypavm.fsf>