Re: Using php as a scripting language within cron jobs?
| From: | Michael Virnstein | Date: | Fri, 17 May 2002 11:57:21 +0000 |
| Subject: | Re: Using php as a scripting language within cron jobs? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-98046@lists.php.net to get a copy of this message | ||
> Set your cron job up as "lynx -dump
> http://www.myserver.com/myscript.php >
> /dev/null" (or pipe it to a logfile if you fancy) - obviously, you'll need
> lynx installed for this to work :-)
but this is only needed only if you compile php into apache or am i wrong?
if i have the cgi version installed, i can call the php script
directly from the shell. The only thing for me to do then, is to set
#!/path.to/php in the first line of the script, right?
Regards Michael
"Jon Haworth" <jhaworth@witanjardine.co.uk> schrieb im Newsbeitrag
news:67DF9B67CEFAD4119E4200D0B720FA3F010C40D4@BOOTROS...
> Hi Henry,
>
> > Is this possible?
>
> yup.
>
> Set your cron job up as "lynx -dump http://www.myserver.com/myscript.phpÆ
> ù
x@S’ŸT T÷¸“° >
> /dev/null" (or pipe it to a logfile if you fancy) - obviously, you'll need
> lynx installed for this to work :-)
>
> Cheers
> Jon