Re: [PHP] php as cron

2001-12-10 Thread Shane Wright
Hi You probably need to set the path to your PHP binary in crontab. Alternatively (this is probs a better way), wrap the whole lot up in a simple shell script and get cron to run the shell script. It's easier than it sounds... #!/bin/bash cd /path/to/php/scripts php myscript.php /dev/null

RE: [PHP] php as cron

2001-12-10 Thread Darren Gamble
- 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: Shane Wright [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 11:47 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] php as cron Hi You probably need to set the path to your PHP binary in crontab

RE: [PHP] php as cron

2001-12-10 Thread jr
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

Re: [PHP] php as cron

2001-12-10 Thread Jay Paulson
I was wondering how to disable the auto email after the cron job is done. How exactly do you disable it? thanks for the help btw! - Original Message - From: Shane Wright [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 10, 2001 12:47 PM Subject: Re: [PHP] php as cron Hi

Re: [PHP] php as cron

2001-12-10 Thread Jay Paulson
: [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

RE: [PHP] php as cron

2001-12-10 Thread Darren Gamble
PROTECTED]'; [EMAIL PROTECTED] 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

RE: [PHP] php as cron

2001-12-10 Thread Martin Towell
] php as cron I was wondering how to disable the auto email after the cron job is done. How exactly do you disable it? thanks for the help btw! - Original Message - From: Shane Wright [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 10, 2001 12:47 PM Subject: Re: [PHP] php

RE: [PHP] php as cron

2001-06-22 Thread AJDIN BRANDIC
parameters to it... -Original Message- From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 8:09 AM To: AJDIN BRANDIC Cc: [EMAIL PROTECTED] Subject: RE: [PHP] php as cron try etc. 00,30 * * * * lynx -dump http://path.to.php.script /dev

RE: [PHP] php as cron

2001-06-22 Thread Jean-Arthur Silve
:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 8:09 AM To: AJDIN BRANDIC Cc: [EMAIL PROTECTED] 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

Re: [PHP] php as cron

2001-06-22 Thread infoz
Perl, Korn, BASH, etc., i.e. #!/path/to/php.cgi -q ...script goes here... - Tim http://www.phptemplates.org - Original Message - From: AJDIN BRANDIC [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 22, 2001 4:28 AM Subject: RE: [PHP] php as cron Hi again, this is what I

RE: [PHP] php as cron

2001-06-21 Thread Johan Holst Nielsen
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

RE: [PHP] php as cron

2001-06-21 Thread Galvin, Max
Either recompile PHP as a cgi OR use lynx to do it so: lynx -dump http://www.mysite.com/myscript.php You can then collect the output in the usual ways. M -- From: AJDIN BRANDIC[SMTP:[EMAIL PROTECTED]] Sent: 21 June 2001 09:07 To: [EMAIL PROTECTED] Subject:

RE: [PHP] php as cron

2001-06-21 Thread Joseph Tate
Have you tried 'php FILENAME'? Now, I don't know how you would pass parameters to it... -Original Message- From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 8:09 AM To: AJDIN BRANDIC Cc: [EMAIL PROTECTED] Subject: RE: [PHP] php as cron try etc

Re: [PHP] php as cron

2001-06-21 Thread lenar
rameters to it... -Original Message- From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 8:09 AM To: AJDIN BRANDIC Cc: [EMAIL PROTECTED] Subject: RE: [PHP] php as cron try etc. 00,30 * * * * lynx -dump http://path.to.php.script /

RE: [PHP] php as cron

2001-06-21 Thread AJDIN BRANDIC
Thanks all Ajdin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]