Hello guys,
I am trying to run the "more" command in Linux using the Qprocess
what i have been trying is :
......
.......
myProcess->setWorkingDirectory(ui->LE_workingdir->text().trimmed());
myProcess->start("/bin/sh");
myProcess->write("more filename\n\r");
// I have the slots to get all the reads from the process
}
......
.......
myProcess->setWorkingDirectory(ui->LE_workingdir->text().trimmed());
myProcess->start("/bin/sh");
myProcess->write("more filename\n\r");
// I have the slots to get all the reads from the process
}
To copy to clipboard, switch view to plain text mode
but i am not getting any info, please any idea what is wrong i am doing here
Thank you so much for taking time to read this 
I also tried
myProcess->start("/bin/sh", QStringList()<< "-c" << "more filename"));
and
myProcess->start("/bin/sh", QStringList()<< "-c" << "more" << "filename"));
but it didnot work too
Bookmarks