title: Unable to log output of "apachectl configtest" to a file
body: <p>I want to log the output of the command "apachectl configtest" to a file. So I tried the following commands:</p>
  
  <pre><code>root@ubuntu:~# echo $(apachectl -t) &gt;&gt; /tmp/apache_config_check
  [Sun Feb 21 14:35:23.614947 2016] [proxy_html:notice] [pid 29249] AH01425: I18n support in mod_proxy_html requires mod_xml2enc. Without it, non-ASCII characters in proxied pages are likely to display incorrectly.
  Syntax OK
  </code></pre>
  
  <p>But It gave empty output:</p>
  
  <pre><code>root@ubuntu:~# cat /tmp/apache_config_check 
  
  root@ubuntu:~# 
  </code></pre>
  
  <p>I also tried a variation on the command itself:</p>
  
  <pre><code>root@ubuntu:~# apachectl -t &gt;&gt; /tmp/apache_config_check
  </code></pre>
  
  <p>and a variation on tee:</p>
  
  <pre><code>root@ubuntu:~# $(apachectl -t) | tee /tmp/apache_config_check
  </code></pre>
  
  <p>Without luck.</p>
  
  <p>I don't really know any other methods to pipe the output, nor I know why the above commands failed. Is it something fundamental?</p>