....
arguments <<"-e" << "wine ./{path to exe}/{name}.exe"; // stuff in {} is specific to my program. the path and name is correct.
QProcess *myProcess
= new QProcess(parent
);
// this might be unnecessarily complicated with the parent. myProcess->start("xterm",arguments); // here the windows executable command line interface shows up on the new terminal.
myProcess->write("1\n"); // THIS AND BELOW DON'T WORK. using the wait until complete function doesn't help
myProcess->write(" {dev IP address} 0/n");
myProcess->write("19/n");
myProcess->write("20000/n");
<here I'm expecting to see data streaming on the terminal>
QObject *parent;
....
QString arguments;
arguments <<"-e" << "wine ./{path to exe}/{name}.exe"; // stuff in {} is specific to my program. the path and name is correct.
QProcess *myProcess = new QProcess(parent); // this might be unnecessarily complicated with the parent.
myProcess->start("xterm",arguments); // here the windows executable command line interface shows up on the new terminal.
myProcess->write("1\n"); // THIS AND BELOW DON'T WORK. using the wait until complete function doesn't help
myProcess->write(" {dev IP address} 0/n");
myProcess->write("19/n");
myProcess->write("20000/n");
<here I'm expecting to see data streaming on the terminal>
To copy to clipboard, switch view to plain text mode
Line 7: Windows applications expect CR LF ("\r\n") not just LF ('\n');
Line 8, 9, and 10: "/n" is not a new line.
Bookmarks