ct: Re: [PHP] 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 1
To: Darren Gamble
Cc: '[EMAIL 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 a
>
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 p
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:
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
P
630 - 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 cr
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
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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 22, 2001 4:28 AM
d 'php '? 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
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]
> > Subjec
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]
w, 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]
>
Have you tried 'php '? 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
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:
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.
>
15 matches
Mail list logo