What exactly would you expect to receive as a result of such command?
What exactly would you expect to receive as a result of such command?
its a log file i expect to receive numbers and when i run the commend in the terminal it works fine and i got the result it want
$ more filename
result i got list of numbers such as :
871
881
891
901
911
921
941
951
....
with this way is faster, to use the more command.
but with this way i can run the ifconfig command and get its out, so why can not i use the more command ??
so it is not possible to use the more command using qprocess ??
I don't understand what you mean.
ifconfig doesn't require a terminal, more does.but with this way i can run the ifconfig command and get its out, so why can not i use the more command ??
Certainly not the way you are trying to do it. Either launch a terminal and execute more there or if your app is launched from a terminal, find a way to attach to this terminal and launch more there.so it is not possible to use the more command using qprocess ??
Thanks but could you please tell me how can i launch a terminal using qprocess and execute "more" in it ??
Most probably by making QProcess run "xterm -e more filename" or something similar.
jesse_mark (4th October 2012)
this command did open a terminal and run the command, but the Qprocess didn't read any output.
what i really want is to make the qprocess receive the out put of the command so i can display it where i want.
Thank you
Why would it read any output?
Then use QFile like I already told you.what i really want is to make the qprocess receive the out put of the command so i can display it where i want.
jesse_mark (5th October 2012)
Bookmarks