Interactive Process
-
hi ,
How can i implement a process that keeps running and takes input and gives output .
like plink.exe for instance .
i want to able to run it then give it commands without it closing .
In code it should look like this :
@
process = openProcessInteractively("plink.exe yyy@1.1.1.1 -pw xxx");
process->run("tcsh");
process->readOutput();
process->run("tcsh cmd1");
process->readOutput();
process->run("tcsh cmd2");
process->readOutput();
...
@ -
Please see the docs for "QProcess":http://qt-project.org/doc/qt-5/qprocess.html#communicating-via-channels. This kind of interaction should be possible, but will not be trivial to do.