http://qs321.pair.com?node_id=987568

Freezer has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

I have a system call from within Perl to a Java program. I would like to set it up so that if the Java program does not finish executing within a fixed period of time it times out.

I was thinking of using a Linux call something like:
ulimit -t 200 | java ....
Although this does not throw an error, it clearly does not do what I want it to do.

Does anyone have potential solutions?