[geeks] Shell quoting question...

velociraptor velociraptor at gmail.com
Fri Jul 14 12:26:41 CDT 2006


On 7/14/06, Sridhar Ayengar <ploopster at gmail.com> wrote:
> velociraptor wrote:
> > I'm having some trouble with a cron job, I can't figure out how to
> > escape it to make it work...
> > In my crontab entry:
> >
> > 00 05 * * * /export/home/nmiller/script "profile%20name" > /dev/null 2>&1
> >
> > If I issue the above in an interactive shell, it works fine.
> >
> > But in the cron log I see this:
> >
> > sh /export/home/nmiller/script "profile
> >
> > I tried escaping the %, e.g. "profile\%20name", but that just resulted
> > in a line in my cron log with my script's exit code for "bad
> > argument".
> >
> Try using single-quotes instead of double.

Tried that, no go.  Next up was "foo'%'20foo", which also didn't work.

=Nadine=



More information about the geeks mailing list