title: shell script: how to compare process running time against a theshold?
body: <p>Bash script should check if a certain process is running more than a certain number of minutes, and kill it if does.</p>
  
  <p>I can get the running time by something like</p>
  
  <pre><code>ps -aux | grep ProgramName | grep -v grep | awk '{print $10}'
  </code></pre>
  
  <p>That gives <code>9:47.31</code> for instance. But where do I go further and check if that is greater than, say 10 minutes threshold?</p>