title: How to see if the process was killed?
body: <p>When you want to set a time limit for a process, you can simply use <code>timeout</code> before the process:</p>
  
  <pre><code>timeout 1.5s COMMAND
  </code></pre>
  
  <p>This will kill the <code>COMMAND</code> if it was not done after 1.5 seconds.</p>
  
  <p>I used that command in some bash scripts; How can i know if one process was completely done before the time limit, or it was killed (because of exceeding the time limit)?</p>