YEEEEESSSSS!!!!!!  MY SCRIPT RUN AND I'M NOT RECEIVING ANY EMAIL!!!!!

Thanks to all!!

Specials thanks to Miguel and Dan!!

Regards! Julian



----- Original Message ----- 
From: Analysis & Solutions 
To: PHP List 
Sent: Friday, April 05, 2002 9:44 PM
Subject: Re: [PHP] CRONTAB


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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to