RE: [PHP] Using php as a scripting language within cron jobs?

From: Date: Fri, 17 May 2002 12:02:28 +0000
Subject: RE: [PHP] Using php as a scripting language within cron jobs?
Groups: php.general 
Request: Send a blank email to php-general+get-98047@lists.php.net to get a copy of this message
correct... > -----Original Message----- > From: Michael Virnstein [mailto:michael.virnstein@brodos.de] > Sent: 17 May 2002 12:57 PM > To: php-general@lists.php.net > Subject: Re: [PHP] Using php as a scripting language within cron jobs? > > > > 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 > > > /dev/null" (or pipe it to a logfile if you fancy) - > obviously, you'll need > > lynx installed for this to work :-) > > > > Cheers > > Jon > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#98047) next »