Re: php as cron

From: Date: Fri, 22 Jun 2001 14:23:43 +0000
Subject: Re: php as cron
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54879@lists.php.net to get a copy of this message
If you're partial to the approach of using a web-based program to do this (often a bad idea, for security reasons) then look at 'curl' or 'wget' instead of 'lynx'. (you can find them on Freshmeat.net) Much better is to build the CGI version of PHP, and use PHP as a script processor just like Perl, Korn, BASH, etc., i.e. #!/path/to/php.cgi -q ...script goes here... - Tim http://www.phptemplates.org ----- Original Message ----- From: "AJDIN BRANDIC" <abrandic@coventry.ac.uk> To: <php-general@lists.php.net> Sent: Friday, June 22, 2001 4:28 AM Subject: RE: [PHP] php as cron > Hi again, > > this is what I have done, as adviced by you guys (thanks) > > created a file called pop which contains > #! /bin/sh > lynx -dump http://192.168.254.10/pop3/pop3_stuff2.php3 > > /dev/null > clear > > If I execute this from the shell ./pop it works OK. > But as a cron job I get an error message sent to my mail box > "Your terminal lacks the ability to clear the screen or position the > cursor.", > hence this 'clear' bit in my script to try to sort the problem but no joy. > > Any ideas? > > Ajdin > > > > On Thu, 21 Jun 2001, Joseph Tate wrote: > > > Have you tried 'php <FILENAME>'? Now, I don't know how you would > > pass > > parameters to it... > > > > > -----Original Message----- > > > From: Johan Holst Nielsen [mailto:johan@1way2print.net] > > > Sent: Thursday, June 21, 2001 8:09 AM > > > To: AJDIN BRANDIC > > > Cc: php-general@lists.php.net > > > Subject: RE: [PHP] php as cron > > > > > > > > > try etc. > > > > > > 00,30 * * * * lynx -dump http://path.to.php.script > > > > /dev/null > > > > > > Regards > > > > > > Johan > > > > > > > > > > > Hi > > > > > > > > I have PHP installed as Apache module but I want to run a cron job. I > > > > have .php script that works OK when executed through browser > > > but is there > > > > any way I could execute it through a cron job. > > > > > > > > Ajdin > > > > > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > > > For additional commands, e-mail: php-general-help@lists.php.net > > > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-general-help@lists.php.net > > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#54879) next »