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
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to