cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: one minute disaster

From: RonnieGauthier <linux_at_chartermi.net>
Date: Sat, 22 May 2004 18:29:08 -0500

On Sat, 22 May 2004 23:46:37 +0200
"Gisle Vanem" <gvanem_at_broadpark.no> wrote:

> "RonnieGauthier" <linux_at_chartermi.net> said:
>
> > I have a php script that uses fopen to grab a text file via a url.
> > The script is run with cron like so, /usr/bin/curl -s http://myDomain.com/myScript.php
> > all is fine except every so often, more often than not, curl starts running the script every minute.
> > I added the -s just to keep the email from overloading.
> >
> > How do I stop this from happening? Once it starts it just keeps on like the energizer bunny!
>
> You got that backwards; curl isn't starting the script, cron or php does.
> What cron does, curl cannot do anything about. So look at "man cron".
>
> --gv
>

20,40 * * * * /usr/bin/curl -s http://myDomain.com/myScript.php

it does not happen if make it execuable and just call it like this,
20,40 * * * * /home/me/www/script.php

I am using curl just so I dont have to make it executable.

I was thinking it might be something like curl taking over if the
script times out without a connection.

Thanks for the pointer

Ronnie
Received on 2004-05-23