title: status of process created by nohup
body: <pre><code>nohup someprogram &amp;&gt; $LOG &amp;
  echo "what happen: $?"
  </code></pre>
  
  <p>And when I have no access to $LOG or someprogram exits with a status other than 0, I'd like to be able to detect that.</p>
  
  <p>Currently, when there is a permission error, $? returns 0. Is it possible to get bash to tell me that there was a problem executing the previous statement?</p>