[PyKDE] QProcess: more guidance needed

David Boddie david at boddie.org.uk
Wed Mar 8 14:37:30 GMT 2006


On Wed, 08 Mar 2006 08:58:07, Tina Isaksen wrote:

> Ok, so I managed to isolate the yes or no option regardless of language.
> But I can't seem to feed it correctly to the apt-get process. The code:

[...]

> I do feed 'something' that apt-get recieves because it aborts. It would
> not have done that unless it got a response of some sort. But even if I
> replace the 'yesOption' with the letter "y" it still just aborts. So I'm
> thinking that either I don't know how to properly write to stdin (a
> distinct posibility) or apt-get uses some other program/ process/
> interface to handle user interaction.

Have you tried sending "y\n" to the process's stdin, just as you would
type it in a console?

David




More information about the PyQt mailing list