in reply to Re^3: How to read from shell command and terminate it afterwards?
in thread How to read from shell command and terminate it afterwards?

I have not tested this as yet, but is this more simple? It looks more complicated.
  • Comment on Re^4: How to read from shell command and terminate it afterwards?

Replies are listed 'Best First'.
Re^5: How to read from shell command and terminate it afterwards?
by ikegami (Patriarch) on Feb 10, 2012 at 09:29 UTC
    More simple or complicated than what?
      I can go ahead and use threads to deal with the STDOUT and STDERR of the child. Not more complicated than this.

        I don't see how to do a working thread solution. You'd be left with threads blocked reading data you don't even want while the program proceeds on.

        So again, I don't know of an alternative solution against which to compare the complexity of mine.