Re: shell script - disable log output

From: Date: Wed, 09 Mar 2005 23:18:07 +0000
Subject: Re: shell script - disable log output
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-210398@lists.php.net to get a copy of this message
>> test.php 2> /var/log/test > I don't really need it to log into a file, but I wanted to prevent it > from echoing to the screen. test.php 2> /dev/null You might even be able to put 2> /dev/null at the end of your #! line... #!/usr/local/bin/php -q 2> /dev/null But I dunno if that's gonna work... > It seems that the extern lib I use should use trigger_error() (or > user_error()) function instead, which is the traditional way to report > user-defined errors. An awful lot of scriptes use die() and error_log() when they should be using trigger_error()... http://php.net/trigger_error die must die. :-) -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#210398) next »