#!/usr/bin/perl use strict; use warnings; use Proc::Reliable; my $proc = Proc::Reliable->new( 'num_tries' => 5, 'time_per_try' => 60, 'maxtime' => 60); Proc::Reliable::debug(1); my $out = $proc->run('java -jar program.jar'); if($proc->status) { print($proc->stderr); exit; } else { print($proc->stdout); }
In reply to Re: killing a process after some time
by Khen1950fx
in thread killing a process after some time
by perlrocks
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |