Unsolved Couldnt able to write data to terminal using QProcess (Qt version 5.9)
-
process = new QProcess(this);
process->setProgram("C:/xx/xx/putty");
process->start();
process->write("ifconfig\r\n");
process->closeWriteChannel();Note: The written value of process->write is 10.
Note: Also coudnt able to start a program using - process->start("C:/xx/xx/putty");
Please some one clarify the above problem. -
Hi and welcome to devnet,
You should first check that putty has indeed started. Note that
ifconfig
is a *nix command not Windows so this might likely be an issue as well.You should check the standard output and standard error channels from your QProcess.