title: Use linux command output in crontab
body: <p>I made a shell script and registered to execute every 20 minutes.
  Here is my crontab code.</p>
  
  <pre><code>*/20 * * * * sh /mypath/run_myprocess.sh &amp;&gt; /dev/pts/34
  </code></pre>
  
  <p>I editted code like this in order to see whether my process run correctly.</p>
  
  <p>I get the result '/dev/pts/34' from tty command in terminal.</p>
  
  <p>However, does anyone know how to use linux command results(in this case: /dev/pts/34)
  in crontab? This is because I will use several terminal to run my tasks.</p>
  
  <p>For example, in shell script, I can use linux command result in the form of $(command) such as</p>
  
  <pre><code>echo "$(date)"
  </code></pre>
  
  <p>directly. </p>
  
  <p>Plus, if I type something on the terminal during process running with crontab, it actually gives result. For example,</p>
  
  <pre><code>Process is running........
  
  ls
  backup backup.sh Desktop Task_Folder shared_folder
  [UserID] ~ # 
  </code></pre>
  
  <p>So I guess cron jobs run correctly but in background.
  Please help me to find out how can I bring cron jobs in foreground.</p>