Running a PHP Script from UNIX Command Line?
| From: | Zach Curtis | Date: | Wed, 17 Jul 2002 22:17:45 +0000 |
| Subject: | Running a PHP Script from UNIX Command Line? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-108173@lists.php.net to get a copy of this message | ||
UNIX gurus:
How can I get a PHP script to run or execute from a UNIX command line and
echo the stdout back to the terminal window?
For example,
> execute/run??? file.php
What I really want to do is create a cron job (which I do know how to
create) for the script. The script doesn't really echo any results back, but
logs its results. The script it too time consuming to be run by having
someone running the script through a web browser and waiting for it to
complete.
Thank you very much.
_________________
Zach Curtis
Programmer Analyst
POPULUS
www.populus.com
_________________
Confidentiality Statement:
This e-mail message and any attachment(s) are confidential and may contain
proprietary information that may not be disclosed without express
permission. If you have received this message in error or are not the
intended recipient, please immediately notify the sender by replying to this
message and then please delete this message and any attachment(s). Any use,
dissemination, distribution, or reproduction by unintended recipients is not
authorized. Thank you.