title: Bash : redirect init.d output in variable
body: <p>I try to redirect the output of an init.d command to a variable without displaying it on screen, but this does not work.
  For example this works :</p>
  
  <pre><code>$&gt; var=`uname -a`
  $&gt; echo $var
  $&gt; Linux
  </code></pre>
  
  <p>But not this :</p>
  
  <pre><code>$&gt; var=`/etc/init.d/nginx reload`
  $&gt; the configuration file /etc/nginx/nginx.conf syntax is ok
  configuration file /etc/nginx/nginx.conf test is successful
  $&gt; echo $var
  $&gt; Reloading nginx configuration: nginx.
  </code></pre>
  
  <p>How can we do to return nothing on the screen please?
  Thanks.</p>
  
  <p>Nico</p>