chandu76 has asked for the wisdom of the Perl Monks concerning the following question:
if test.tcl file not exists then tool is invoked and it is hanged.how can I come out of while loop. or another case is if did not use exit in tcl script the same problem tool runs and hangs. how can I exit in such situations? I can't use " exit 1 if ($_ =~ /^(Error :)); " becuase tool should run though it gets error messages,but should exit depending on exit status.open(FILE,"run_tool -f "test.tcl" 2>&1|"); open(LOG,">log"); while(<TEMP>){ print; print log; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: stop process based on exit status.
by jdalbec (Deacon) on Aug 14, 2004 at 13:27 UTC | |
|
Re: stop process based on exit status.
by Mr_Person (Hermit) on Aug 14, 2004 at 16:22 UTC |