[PyQt] QProcess: Seems to execute nothing

Manuel Rotter rotter.manuel at gmail.com
Sun Jan 30 17:55:49 GMT 2011


Hello all

I'm trying to use QProcess to execute some commands, but it seems to do nothing.

Here is my Code:

http://python.pastebin.com/NKHaj1W4
---------------------------------
p = QtCore.QProcess()
#p.setStandardOutputFile(temp.name)
p.start("sh -c 'echo lol > /home/naeg/lolfile'")

p.close()
---------------------------------

This file where I redirect to, doesn't even exist after executing that code.

It doesn't work with setStandardOutputFile() either, and also not
without "sh -c".


I'm using Python 3.1.3 and pyQt 4.8.1(for Python 3, of course).


Greetings


More information about the PyQt mailing list