echoangel911 has asked for the wisdom of the Perl Monks concerning the following question:
Inside the tempfilename, the environment is setup and my tool is called. If someone else is using my tool due to license restrictions, the program will hang thus causing my cgi perl script to hang. Is there anyway to put a timer on this to exit and then continue on?open (SYS, "/bin/tcsh $tempfilename | ") or die "$!"; while (<SYS>) { print "[DEBUG] $_ <br>"; } close SYS;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to kill subprocess when it goes longer than 20 seconds?
by ikegami (Patriarch) on Mar 28, 2007 at 15:17 UTC | |
by echoangel911 (Sexton) on Mar 28, 2007 at 17:28 UTC | |
by izut (Chaplain) on Mar 28, 2007 at 17:41 UTC |