title: Timeout command on Mac OS X?
body: <p>Is there an alternative for the timeout command on Mac OSx. The basic requirement is I am able to run a command for a specified amount of time.</p>
  
  <p>e.g:</p>
  
  <pre><code>timeout 10 ping google.com
  </code></pre>
  
  <p>This program runs ping for 10s on Linux.</p>