Hi,
If I understand your request: You can use "yourProcess->write("ping")"(or similar) and then, if you have connected the signal that I told you, you will get the output messages of the process to your application.
Is this what you want?
Hi,
If I understand your request: You can use "yourProcess->write("ping")"(or similar) and then, if you have connected the signal that I told you, you will get the output messages of the process to your application.
Is this what you want?
Òscar Llarch i Galán
I was talking about the STDIN reading implementation in the myProcess application:
I have found this:
http://www.qtforum.org/index.php?pag...9f95#post90066
what do you think?
Hi,
"ping"
myApp -----------------------------> myProcess
|
|
| "do some work"
|
|
myApp <-----------------------------------
"message"
Is this what yoy want?
So if it's what you are expecting, why don't try the solution that I've posted?
"readyRead" signal will be emitted when "yourProcess" write to STDOUT and "yourSlot" will get this message.
Òscar Llarch i Galán
No I want this:
"ping" myApp -----------------------------> myProcess <Do something>
"pong" myProcess ------------------------> myApp <Do something>
Your process has to read commands from its standard input and write responses to its standard output. The way it does that is out of the scope of this question as it highly depends what the worker application is written in. For example you can use select() or poll() if available or a socket notifier if using Qt with an event loop.
bunjee (22nd January 2009)
Bookmarks