in reply to Re^3: open2() in Windows
in thread open2() in Windows
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: open2() in Windows
by bhaveshbp (Initiate) on Jul 23, 2007 at 17:42 UTC | |
by BrowserUk (Patriarch) on Jul 23, 2007 at 17:53 UTC | |
by bhaveshbp (Initiate) on Jul 23, 2007 at 17:59 UTC | |
by BrowserUk (Patriarch) on Jul 23, 2007 at 18:12 UTC |