in reply to How to share streams between processes
Hm. You want to spawn a thread, execute an external process from within that thread and then leave that thread doing nothing whilst your main thread reads from the process. And once the external process finishes, have the thread terminate.
Why? Why complicate things by having the thread start the process and then do nothing, if you want the main thread to read the data? Forget the thread, it is achieving nothing but complication. Just run the external process from the main thread in any of the normal ways backticks, piped open IPC::open.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to share streams between processes
by rapide (Beadle) on Sep 03, 2008 at 15:55 UTC | |
by BrowserUk (Patriarch) on Sep 03, 2008 at 17:44 UTC | |
by rapide (Beadle) on Sep 06, 2008 at 10:58 UTC |