inktomi
7th August 2009, 01:41
I'm trying to execute a process using QProcess. This process performs its job until it is interrupted by pressing the 'q' key.
I was trying to simulate pressing the 'q' key by sending the character to the process via the write() function. That did not work.
Then I found this Qt Labs blog post (http://labs.trolltech.com/blogs/2006/03/16/starting-interactive-processes-with-qprocess/) which I think is trying to achieve what I want. The problem is, I can't understand what the guy is doing especially the meaning of dup and dup2.
I would be very grateful if someone could explain.
Thank You
I was trying to simulate pressing the 'q' key by sending the character to the process via the write() function. That did not work.
Then I found this Qt Labs blog post (http://labs.trolltech.com/blogs/2006/03/16/starting-interactive-processes-with-qprocess/) which I think is trying to achieve what I want. The problem is, I can't understand what the guy is doing especially the meaning of dup and dup2.
I would be very grateful if someone could explain.
Thank You