Re: New util suggestion: timeout

2004-06-28 Thread Paul Jarc
Philip Rowlands [EMAIL PROTECTED] wrote: I'd be happy to learn if there's something else already in common use. Probably not too common, but there is this: URL:http://cr.yp.to/daemontools/softlimit.html The -t option limits CPU time, though, not wall-clock time. How would you limit wall-clock

Re: New util suggestion: timeout

2004-06-28 Thread Paul Eggert
[EMAIL PROTECTED] (Paul Jarc) writes: How would you limit wall-clock time? Schedule SIGALRM with setitimer and then exec the given command? I've long used a command of my own called 'alarm' that just does that. However, this strategy doesn't always work well if the command has subprocesses,

Re: New util suggestion: timeout

2004-06-28 Thread Paul Jarc
Paul Eggert [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] (Paul Jarc) writes: How would you limit wall-clock time? Schedule SIGALRM with setitimer and then exec the given command? I've long used a command of my own called 'alarm' that just does that. However, this strategy doesn't always work

Re: New util suggestion: timeout

2004-06-28 Thread Philip Rowlands
On Mon, 28 Jun 2004, Paul Jarc wrote: How would you limit wall-clock time? Schedule SIGALRM with setitimer and then exec the given command? I've long used a command of my own called 'alarm' that just does that. However, this strategy doesn't always work well if the command has

New util suggestion: timeout

2004-06-27 Thread Philip Rowlands
What: timeout, executes the sub-command a-la GNU time/nice, but takes arguments to control the amount of wallclock time the process is allowed. Why: - ulimit for real time - No current util (GNU or otherwise) widely distributed (AFAIK) - Useful in scripting, particularly with network apps I was