note 78062 deleted from ref.exec by cmb
| From: | cmb@php.net | Date: | Sun, 24 Feb 2019 09:28:56 +0000 |
| Subject: | note 78062 deleted from ref.exec by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-210280@lists.php.net to get a copy of this message | ||
Note Submitter: Max_R
----
Just a small notice, when running PHP under MS Windows
some external command-line utilities (like 'ffmpeg.exe') output all info to stderr instead
of stdout. In my case it caused apache error.log overfilling with lots of unsolicited records.
It has just taken some time for me to make the utility silent:
Simply add
">NUL 2>&1"
to the very end of your command line. It makes cmd.exe to redirect stderr to stdout and then, in
one's turn, redirect stdout to NULL.
Hope this tip will save some time when dealing with such utilities.