title: How can I stop a line that tail has been killed being printed to the console?
body: <p>I have a script that tails a log file in the background and then redirects it to a file:</p>
  
  <pre><code>tail -f ~/dev/logs/*.log &gt; $LOG 2&gt;&amp;1 &amp;
  LOG_PID=$!
  </code></pre>
  
  <p>Later on I kill it:</p>
  
  <pre><code>kill $LOG_PID
  </code></pre>
  
  <p>But it prints an untidy message to the console:</p>
  
  <pre><code>/Users/.../restart: line 47: 66634 Terminated: 15          tail -f ~/dev/logs/*.log &gt; $LOG 2&gt;&amp;1s
  </code></pre>
  
  <p>How do I stop that message being printed?</p>