On 21/06/05, Arun Khan <[EMAIL PROTECTED]> wrote:
> The following works fine from the CLI:
> # /usr/bin/killall -9 wget && echo "It is `date +'%a %R'`, all wget jobs
> terminated... "
> 
> but gives me error when invoked from /etc/crontab (the entry is one line
> though it appears in 2 lines due to auto wrapping in the MUA):

Dude... read at least the man page before posting here. Googling is
too much to ask for, I know.

crontab(5) has:

       The  ``sixth'' field (the rest of the line) specifies the command to be
       run.  The entire command portion of the line, up  to  a  newline  or  %
       character, will be executed by /bin/sh or by the shell specified in the
       SHELL variable of the cronfile.   Percent-signs  (%)  in  the  command,
       unless escaped with backslash (\), will be changed into newline charac-
       ters, and all data after the first % will be sent  to  the  command  as
       standard input.

Do you see your problem now?

Binand


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
linux-india-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to