RE: [PHP] Running PHP as a cron job....

2001-07-08 Thread Ben Bleything
How are you executing the script? Does it come by and run 'php yourscript.php' or does the script have a shebang ('#!/usr/bin/php') in it? I've found that works well... just put that as the first line, and it behaves as a shell script (after you make it executable, of course) Ben

Re: [PHP] Running PHP as a cron job....

2001-07-08 Thread James, Yz
Hi Ben, When running it as a normal PHP file, I get the cron daemon emailing me stuff like: automation/mail.php: ?: No such file or directory automation/mail.php: =: command not found automation/mail.php: =: command not found automation/mail.php: line 7: syntax error near unexpected token

RE: [PHP] Running PHP as a cron job....

2001-07-08 Thread Matthew Loff
:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 6:57 PM To: Ben Bleything; [EMAIL PROTECTED] Subject: Re: [PHP] Running PHP as a cron job Hi Ben, When running it as a normal PHP file, I get the cron daemon emailing me stuff like: automation/mail.php: ?: No such file or directory automation

RE: [PHP] Running PHP as a cron job....

2001-07-08 Thread Ben Bleything
Message- From: James, Yz [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 3:57 PM To: Ben Bleything; [EMAIL PROTECTED] Subject: Re: [PHP] Running PHP as a cron job Hi Ben, When running it as a normal PHP file, I get the cron daemon emailing me stuff like: automation/mail.php

Re: [PHP] Running PHP as a cron job....

2001-07-08 Thread Don Read
On 08-Jul-01 James, Yz wrote: Hi Ben, When running it as a normal PHP file, I get the cron daemon emailing me stuff like: automation/mail.php: ?: No such file or directory automation/mail.php: =: command not found automation/mail.php: =: command not found automation/mail.php: line 7:

Re: [PHP] Running PHP as a cron job....

2001-07-08 Thread Chris Fry
Check the path to your php cgi executable - which php - you'll probably find that it's #!/usr/local/bin/php This is what the no such file or directory is referring to. Chris Don Read wrote: On 08-Jul-01 James, Yz wrote: Hi Ben, When running it as a normal PHP file, I get the cron

Re: [PHP] Running PHP as a cron job....

2001-07-08 Thread Michael Hall
This looks like a good place for me to step in and maybe clear up something I've been wondering about ... With all the advice that has been offered so far, has it been assumed that php is installed in the CGI rather than DSO manner? Can PHP as a DSO interpret shell script-like files with a

RE: [PHP] Running PHP as a cron job....

2001-07-08 Thread Ben Bleything
:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 3:16 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Running PHP as a cron job This looks like a good place for me to step in and maybe clear up something I've been wondering about ... With all the advice that has been offered so far, has it been

RE: [PHP] Running PHP as a cron job....

2001-07-08 Thread Michael Hall
On Sun, 8 Jul 2001, Ben Bleything wrote: Interesting method, with the lynx... I imagine that if you've only built the DSO, then that would be the way to do it.. if it worked. My guess would be, you would have to do lynx 'http://localhost/path/to/script/script.php' to force it to go

Re: [PHP] Running PHP as a cron job....

2001-07-08 Thread Steve Werby
Michael Hall [EMAIL PROTECTED] wrote: With all the advice that has been offered so far, has it been assumed that php is installed in the CGI rather than DSO manner? I haven't found this to be clear from the thread. Can PHP as a DSO interpret shell script-like files with a shebang at the

Re: [PHP] Running PHP as a cron job....

2001-07-08 Thread Steve Werby
Ben Bleything [EMAIL PROTECTED] wrote: Interesting method, with the lynx... I imagine that if you've only built the DSO, then that would be the way to do it.. if it worked. It works. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing

Re: [PHP] Running PHP as a cron job....

2001-07-08 Thread Steve Werby
Michael Hall [EMAIL PROTECTED] wrote: I've just recently got a bit more serious with learning bash scripting and am surprised at how powerful it really is, in conjunction with the usual UNIX commands and other tools. PHP is the only choice for most things web related, but I'm finding that