my $temppid = open (SYS, "/bin/tcsh $tempfilename | ") or die "$!"; kill $temppid if (alarm (5)); while (<SYS>) { print "[DEBUG] $_ <br>"; } close SYS;
In reply to Re^2: how to kill subprocess when it goes longer than 20 seconds?
by echoangel911
in thread how to kill subprocess when it goes longer than 20 seconds?
by echoangel911
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |