On Wed, 18 Sep 2019 17:23:19 +0300 "Yordan Karadzhov (VMware)" <y.karadz@xxxxxxxxx> wrote: > The example implements a small GUI that executes shell commands. > > Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@xxxxxxxxx> The testing on this seems to do what I think it should do. I did modify it with this change, to get rid of the "Unknown error" message on success. Care to send a v3? -- Steve diff --git a/kernel-shark/examples/cmd_split.cpp b/kernel-shark/examples/cmd_split.cpp index ac688442..b8cc1b59 100644 --- a/kernel-shark/examples/cmd_split.cpp +++ b/kernel-shark/examples/cmd_split.cpp @@ -39,9 +39,10 @@ int main(int argc, char **argv) proc.start(); proc.waitForFinished(); - cout << proc.errorString().toStdString() - << endl - << proc.readAllStandardError().toStdString() + if (proc.exitCode()) + cout << proc.errorString().toStdString() << endl; + + cout << proc.readAllStandardError().toStdString() << endl << proc.readAllStandardOutput().toStdString() << endl;