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; }
In reply to stop process based on exit status. by chandu76
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |