Don't have Telegram yet? Try it now!
http://blog.amit-agarwal.co.in/2010/12/29/execute-command-timeout/
Execute a command with a timeout