curl-users
Re: one minute disaster
From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Sat, 22 May 2004 23:46:37 +0200
Date: Sat, 22 May 2004 23:46:37 +0200
"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
Received on 2004-05-22