Unix/sh/bash/tcsh command to limit clock time for program?

2006-12-26 Thread Kelly Jones
Is there a Unix or shell command that runs a given program for n seconds and then terminates it (unless the program takes less than n seconds to run, obviously)? I know ulimit can limit a program's CPU time and sh's TIMEOUT variable can limit idle time at the shell prompt, but how to limit a

Re: Unix/sh/bash/tcsh command to limit clock time for program?

2006-12-26 Thread John Levine
Is there a Unix or shell command that runs a given program for n seconds and then terminates it (unless the program takes less than n seconds to run, obviously)? some-command sleep 42; kill -9 $! R's, John ___ freebsd-questions@freebsd.org mailing