Unix timeout command to run a task and kill it after given duration

I need to run a command and execute task. It need to kill it if is is still running after a specified duration on Unix system. How do I use timeout command on Unix?

The syntax is


Say run ping command for 10 seconds:

timeount 10s ping

See the following for more info

Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki