Re: CRONTAB
| From: | Analysis & Solutions | Date: | Sat, 06 Apr 2002 00:44:37 +0000 |
| Subject: | Re: CRONTAB | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-91822@lists.php.net to get a copy of this message | ||
On Fri, Apr 05, 2002 at 09:42:02PM -0300, Julian wrote:
> 0 0 * * * /usr/bin/php /path/to/my/script.php
>
> But I continue receiving an email each time that the script run that say:
>
> X-Powered-By: PHP/4.0.6
> Content-type: text/html
Those two lines are PHP's default output. Crontab, by default, sends
output of programs to the user by email. You can change both behaviors
by doing this:
0 0 * * * /usr/bin/php -q /path/to/my/script.php >> /dev/null 2>&1
Enjoy,
--Dan
--
PHP scripts that make your job easier
http://www.analysisandsolutions.com/code/
SQL Solution | Layout Solution | Form Solution
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Ave, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409