Re: cron sh ?
Thanks everyone for their reply.
Cron is treating the "%" as newlines and adding a backslash
before each "%" solves the problem. It does not appear that
tick marks are necessary.
... wget ... -O ~/Base$(data +\%H\%M).gif
>
> I have a cron script and a line:
>
>
> 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?
>
> 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>