title: How to run a process with a timeout in Bash?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5161193/bash-script-that-kills-a-child-process-after-a-given-timeout">Bash script that kills a child process after a given timeout</a>  </p>
  </blockquote>
  
  
  
  <p>Is there a way to write a shell script that would execute a certain command for 15 seconds, then kill the command?</p>
  
  <p>I have tried sleep, wait and ping but maybe I am using them wrong.</p>