QProcess - spawning another process within a process
General and Desktop
2
Posts
2
Posters
5.1k
Views
1
Watching
-
wrote on 3 Jun 2011, 21:04 last edited by
I can successfully spawn the Cygwin's bash process from my Qt application. However, I want cygwin's bash to start another process (dejagnu) within itself. How can I achieve this?
-
wrote on 3 Jun 2011, 22:42 last edited by
That's more a subject to bash, not to Qt.
You can call bash with -c <command> parameter like this:
@
QString command = "bash";
QStringList args;
args << "-c" << "dejagnu";
QProcess p(this);
p.start(command, args);
@
1/2