Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Howto get system call output?
sirnoname last edited by
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?
Sounds like you are looking for "QProcess":http://doc.qt.io/qt-5/qprocess.html