Re: cron sh ?
On Mon, Mar 17, 2003 at 01:04:35PM -0600, Lance Hoffmeyer wrote:
> Hello,
>
> I have a cron script and a line:
>
> ... wget ... -O ~/Base$(data +%H%M).gif
>
> and I get the error
>
> /bin/sh: -c: line1: unexpected EOF while looking for matching `)'
> /bin/sh: -c: line2: syntax error: unexpected end of file
>
> I am guessing that because I am running bash via cron that I am missing
> slashes or I need to enclose the command in quotes?
>
> How do I fix this?
'%' is no good in crontabs, they get changed to newline. You need
to use '\%'. Try 'man 5 crontab'
>
> Lance
>
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
Reply to:
- References:
- cron sh ?
- From: Lance Hoffmeyer <lance@augustmail.com>