Re: php as cron

From: Date: Mon, 10 Dec 2001 19:19:50 +0000
Subject: Re: php as cron
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-77224@lists.php.net to get a copy of this message
I don't want to use lynx to run the script because I don't want this script accessible through a web browser :) ----- Original Message ----- From: <jr@JohnRudnick.net> To: "Darren Gamble" <Darren.Gamble@sjrb.ca> Cc: <me@shanewright.co.uk>; <php-general@lists.php.net> Sent: Monday, December 10, 2001 1:12 PM Subject: RE: [PHP] php as cron > > Why not just use lynx to run it? > > */2 * * * * /usr/local/bin/lynx -dump crontest.php > > JR > > > > On Monday 10 Dec 2001 5:54 pm, Jay Paulson wrote: > > > I'm trying to test php running as a cron job and I have installed php as a > > > CGI in /usr/local/bin and I have edited my crontab file to call a php file > > > every two minutes. However, it's not working and I was wondering if you > > > all would know what's going on. Anyway, here's how I have things set up. > > > > > > crontab file: > > > */2 * * * * php /home/crontest.php > /dev/null > > > > > > crontest.php: > > > #!/usr/local/bin/php -q > > > <?php > > > mail("email@email.com","cron test", "testing",NULL); > > > ?> > > > > > > email I'm receiving with error: > > > Subject: Cron <> php /home/crontest.php > /dev/null > > > Body: /bin/sh: php: command not found > > > > > > thanks for any help. > > > > -- > > 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 (#77224) next »