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
- 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
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
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
: [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
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
] 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
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
:[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
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
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
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:
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
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 /
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]
15 matches
Mail list logo