title: Create a pipe that writes to multiple files (tee)
body: <p>I would like to create a pipe in a ksh script (using exec) that pipe's to a tee, and sends the output to a pipe.</p>
  
  <p><strong>Current:</strong></p>
  
  <pre><code>#Redirect EVERYTHING
  exec 3&gt;&amp;1 #Save STDOUT as 3
  exec 4&gt;&amp;2 #Save STDERR as 4
  exec 1&gt;${Log} #Redirect STDOUT to a log
  exec 2&gt;&amp;1 #Redirect STDERR to STDOUT
  </code></pre>
  
  <p><strong>What'd I'd <em>like</em> to do</strong> (but I don't have the syntax correct):</p>
  
  <pre><code>#Redirect EVERYTHING
  exec 3&gt;&amp;1 #Save STDOUT as 3
  exec 4&gt;&amp;2 #Save STDERR as 4
  exec 1&gt;tee -a ${Log} &gt;&amp;3  #Redirect STDOUT to a log
  exec 2&gt;&amp;1 #Redirect STDERR to STDOUT
  </code></pre>
  
  <p>How can I create this pipe?</p>