I'm using a PHP script from cli, the script calls
exec() a few times. There are some minor errors sometimes, which are handled by the PHP script. I'm suppressing the errors by appending
2>/dev/null to the end of each command...
Is there any way to achieve that without adding the aforementioned?