RE: [PHP] PHP + Cron jobs
| From: | Richard Lynch | Date: | Sat, 27 Sep 2008 16:43:54 +0000 |
| Subject: | RE: [PHP] PHP + Cron jobs | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-281042@lists.php.net to get a copy of this message | ||
You are using the old school PHP CGI as if it were PHP CLI.
Upgrade and use PHP CLI.
Or just add -q to the args:
12 6 * * * php -q /home/foo/temp.php
php -h
will show you the version and nature (CLI/CGI) of PHP you are running, as well as the args and what
they do, in rather terse format.
________________________________________
From: Waynn Lue [waynnlue@gmail.com]
Sent: Saturday, September 27, 2008 4:21 AM
To: PHP General list
Subject: [PHP] PHP + Cron jobs
This is something that I've noticed for awhile, but last post to this
mailing list reminded me that someone probably already knows how to work
around this! I have a cron job that looks something like
12 6 * * * php /home/foo/temp.php
But even if temp.php doesn't output anything, I still get emails from the
crontab that consist of
"Content-type: text/html"
I assume this is happening because it's interpreting as a web page or some
such. Is there a better way to set the crontab so I don't get that output?
Thanks,
Waynn
_______________________________________________________
The information in this email or in any file attached
hereto is intended only for the personal and confiden-
tial use of the individual or entity to which it is
addressed and may contain information that is propri-
etary and confidential. If you are not the intended
recipient of this message you are hereby notified that
any review, dissemination, distribution or copying of
this message is strictly prohibited. This communica-
tion is for information purposes only and should not
be regarded as an offer to sell or as a solicitation
of an offer to buy any financial product. Email trans-
mission cannot be guaranteed to be secure or error-
free. P6070214