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

Sat Apr 7 11:02:23 UTC 2007
James Pearson <james-p at moving-picture.com>

On 07/04/07, Jerry Geis <geisj at pagestation.com> wrote:
> 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.

I found something on the web ages ago that does just this - see:

<http://www.splode.com/~friedman/software/scripts/src/with-timeout>

James Pearson