title: Get the time when nohup R program finishes
body: <p>I want to get the time when program finish. But it always show the same time. Here is my shell script. It always show that <code>START TIME</code> is same as <code>END TIME</code>.  How do I fix that?</p>
  
  <pre><code>START=$(date +"%r") 
  nohup Rscript program_1.R &gt;program_1.Rout &amp; wait &amp; echo START TIME = $START\n END TIME = " `date +"%r"`";
  </code></pre>