title: Linux shell script syntax error on exec command
body: <p>I added the following command near the top of my shell script in order to record the script output to a file. This works with no problem when I run the script as my user, jsmith, however when the script is run as root in a crontab, I receive an error:</p>
  
  <pre><code>syntax error near unexpected token:
  
  exec &amp;&gt; &gt;(tee $LOG_PATH$TIMESTAMP.log)
  </code></pre>
  
  <p>I do have both $LOG_PATH and $TIMESTAMP correctly defined above the command as:</p>
  
  <pre><code>LOG_PATH="/home/jsmith/script/logs/"
  TIMESTAMP="$(date -d "today" +"%Y-%m-%d-%H:%M")"
  </code></pre>
  
  <p>Any ideas? Thanks!</p>