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.
e.g:
You can limit execution time of any program using this command:
ping -t 10 google.com & sleep 5; kill $!