Hiding "Syntax OK" from apache2ctl output
Posted
by
Oscar Barrett
on Server Fault
See other posts from Server Fault
or by Oscar Barrett
Published on 2014-06-13T08:04:37Z
Indexed on
2014/06/13
9:28 UTC
Read the original article
Hit count: 248
apache-2.2
|io
I am checking whether a particular apache module is installed using apache2ctl -M
. When listing the modules, apache runs a syntax check on the configuration files which prints out "Syntax OK" if everything is fine.
However, this message doesn't seem to be coming from STDOUT or STDERR as it shows even if all output is redirected to /dev/null. i.e.
$ sudo apache2ctl -M
Loaded Modules:
core_module (static)
log_config_module (static)
...
Syntax OK
$ sudo apache2ctl -M >/dev/null
Syntax OK
How is this being outputted, and is it possible to hide?
© Server Fault or respective owner