in reply to Launching an external process with a run-time limit

Why reinvent the wheel? You're running on AIX, so you have a decent shell. This is a solved problem - reuse it. And you don't need additional modules.

The code below works on the AIX system I tried it on:

my $rc = `ulimit -t 5; /usr/bin/somecommand param1 param2`;

Replies are listed 'Best First'.
Re^2: Launching an external process with a run-time limit
by TheFluffyOne (Beadle) on Oct 18, 2006 at 15:29 UTC
    I was under the impression that ulimit -t worked on CPU seconds rather than wall-clock seconds, and therefore if the hung process wasn't using CPU cycles this wouldn't work. I'll have to give this a go.