Howto get system call output?
General and Desktop
2
Posts
2
Posters
2.6k
Views
1
Watching
-
wrote on 22 Dec 2014, 16:07 last edited by
Hello,
I want to get the output of a special mesg line:
@dmesg | grep -i machine@
I like to call this in C++ with system("dmesg | grep -i machine") command and get back a QString with the dmesg output.
Is there a way to get the output?regards,
SirNoName -
Hi,
Sounds like you are looking for "QProcess":http://doc.qt.io/qt-5/qprocess.html
1/2