[CentOS] command to ensure other command does last longer than 5 seconds

Sat Apr 7 02:16:56 UTC 2007
Jerry Geis <geisj at pagestation.com>

Hi,

I am wondering if there exists a centos command that runs another command
and ensures the second command doesnt take more than x seconds? When x 
is given on the command line.

If the second command is not "done" the first command will just kill it
and both exit.

Does such a method or command exist?

I just need to ensure the second command does just continue to run and 
run and run.

Thanks,

Jerry