Howto get system call output?
-
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