If your code is as you show it in this post, then I don't see how you are ever getting to a loop count greater than 1?
The problem is, while( <READ>) { ... } doesn't terminate until it gets EOF, but as the child process isn't closing the file, it never will. So you will issue one command, process it's output, and then block in the inner while loop. You'll never get back to issuie the second command.
In reply to Re^4: open2() in Windows
by BrowserUk
in thread open2() in Windows
by bhaveshbp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |