title: Using tee with logger : syntax error near unexpected token `('
body: <p>Scenario 1 : Command line</p>
  
  <pre><code>    ./myscript.sh 2&gt;&amp;1 | tee &gt;(logger -t 'MYSCRIPT')
  </code></pre>
  
  <p>Works fine and perfect : displays errors and output msg on command line 
  as well as puts in the lo</p>
  
  <p>Scenario 2 : Adding it to a crontab</p>
  
  <pre><code>    20 19 * * * imuser /home/imuser/myscript.sh 2&gt;&amp;1 | tee &gt;(logger -t 'MYSCRIPT')
  </code></pre>
  
  <p>Error : syntax error near unexpected token `('</p>
  
  <p>What is that I am missing here ?</p>