List Info

Thread: Scripted




Scripted
country flaguser name
Belgium
2008-05-07 11:22:03

Hi list,

 

I’m trying to launch the following command through cron.  But I can’t get it working.

If I launch the command from the console, it works like a charm though. (The variables are not the problem)

 

/usr/bin/lynx -connect_timeout=30 -cfg= /etc/config/lynx.cfg -cmd_script= /etc/config/automate.macro http://fubar

 

 

My crontab file looks like:

 

*/10 * * * *    root   ; /usr/bin/lynx -connect_timeout=30 -cfg= /etc/config/lynx.cfg -cmd_script= /etc/config/automate.macro http://fubar  >/dev/null

 

If I put my lynx command into a shell script and execute that shell script through cron, it doesn̵7;t work either

 

Anyone an idea to help me out?

 

 

Thanks in advance,

 

J

Re: Scripted
user name
2008-05-07 16:05:54
Really seems like you aren't getting the same environment in
the
script and in cron that you get in your shell. Take out the
redirection of the output in cron and let us know the
message that is
mailed to you. What is the output from the shell script?

Stef

On Wed, May 7, 2008 at 12:22 PM, Jelle Smet
<Jelle.Smetteleatlas.com> wrote:
>
>
>
> Hi list,
>
>
>
> I'm trying to launch the following command through
cron.  But I can't get it
> working.
>
> If I launch the command from the console, it works like
a charm though. (The
> variables are not the problem)
>
>
>
> /usr/bin/lynx -connect_timeout=30 -cfg=
/etc/config/lynx.cfg -cmd_script=
> /etc/config/automate.macro http://fubar
>
>
>
>
>
> My crontab file looks like:
>
>
>
> */10 * * * *    root    /usr/bin/lynx
-connect_timeout=30 -cfg=
> /etc/config/lynx.cfg -cmd_script=
/etc/config/automate.macro http://fubar
> >/dev/null
>
>
>
> If I put my lynx command into a shell script and
execute that shell script
> through cron, it doesn't work either
>
>
>
> Anyone an idea to help me out?
>
>
>


_______________________________________________
Lynx-dev mailing list
Lynx-devnongnu.org
htt
p://lists.nongnu.org/mailman/listinfo/lynx-dev

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )