Hello Guys!
I've been trying to get the output of a konsole command output. (I'm trying to get Wget's output) I've tried QProecess, readyReadStandardError etc. But I couldn't get the result. Can anyone help me with that?
Thanks in advance!
Hello Guys!
I've been trying to get the output of a konsole command output. (I'm trying to get Wget's output) I've tried QProecess, readyReadStandardError etc. But I couldn't get the result. Can anyone help me with that?
Thanks in advance!
QProcess is a correct way ..
can u show us how u implement the QProcessI've tried QProecess, readyReadStandardError etc. But I couldn't get the result
"Behind every great fortune lies a crime" - Balzac
Also I tried the readyReadStandartOutput signal. But I couldn't get the Wget's output.QProcess process;
process.setProcessChannelMode(QProcess::MergedChan nels);
process.execute("wget http://27.media.tumblr.com/tumblr_l0d8uj2Ou41qbut2yo1_400.jpg");
process.waitForFinished();
QString str = process.readAll();
Do you mean "console" or "konsole" (as in KDE terminal emulator program)?
I mean "Konsole".
In that case you can't. Konsole doesn't output what it displays. If you really need it you can tee (man tee) the output from wget to some file or named pipe and read it from there before it reaches Konsole.
Bookmarks