Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » capturing stdout/err/in of subprocess
Re: capturing stdout/err/in of subprocess [message #1702 is a reply to message #1701] Tue, 14 March 2006 10:54 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I guess you still do not understand my worries Smile

The problem is not with feeding characters down the subprocess stdin - that is simple. And subprocess will wait if stdin is empty.

The problem is with user interface implementation - it is terminal responsibility to echo user input. Try to start a long process in cmd.exe (or linux terminal) and try to hit some character keys while process is running - the characters will not appear until subprocess blocks waiting for input (e.g. getchar). (Of course, it can appear after it ends too).

The problem is that there is no method known to me how to detect this "child process is blocked as it is waiting for user input - time to display user input line".

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New EH handling in MinGW
Next Topic: DLL and U++ type
Goto Forum:
  


Current Time: Sat May 04 20:10:29 CEST 2024

Total time taken to generate the page: 0.01524 seconds