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:
Does anyone have potential solutions?
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:
Although this does not throw an error, it clearly does not do what I want it to do.ulimit -t 200 | java ....
Does anyone have potential solutions?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Setting a timer to a system call
by zentara (Archbishop) on Aug 15, 2012 at 15:38 UTC | |
by Freezer (Sexton) on Aug 16, 2012 at 09:13 UTC | |
by zentara (Archbishop) on Aug 16, 2012 at 15:47 UTC | |
by Freezer (Sexton) on Aug 17, 2012 at 13:07 UTC | |
by zentara (Archbishop) on Aug 18, 2012 at 08:39 UTC | |
by Freezer (Sexton) on Aug 17, 2012 at 14:20 UTC | |
by Freezer (Sexton) on Aug 17, 2012 at 13:47 UTC | |
by zentara (Archbishop) on Aug 18, 2012 at 08:42 UTC | |
Re: Setting a timer to a system call
by runrig (Abbot) on Aug 15, 2012 at 15:42 UTC |
Back to
Seekers of Perl Wisdom