I\'m using Qt and bash over it, need to execute something like:
bash: cat file | grep string
in Qt:
QString cmd = \"cat fil
The problem is you cannot run a system command with QProcess, but only a single process. So the workaround will be to pass your command as an argument to bash:
process.start("bash", QStringList() << "-c" << "cat file | grep string");