PDA

View Full Version : QProcess & linux shell characters



Ti_Thom
14th November 2006, 17:22
Hi,
I am trying to execute some commands given by the user with a QProcess, but the QProcess does not interpret characters like '>', '&', '*', ...
I know this is a feature of the class, is there any workaround ?

wysota
14th November 2006, 17:55
These are interpreted by the shell, so all you need to do is to call the shell from QProcess.

Rajeshsan
18th December 2009, 08:15
Hi.. I need to develop a simple GUI where it can send parameters to CLI(command line interface). If i click on Button. it should send "ls -l" to shell. then on my CLI i need to see all list of folders and directories. Plz can you help me im new in Q Process...

Rajeshsan
21st December 2009, 09:44
Hi Thom and all.........
Plz can you attach code of sending commands from Qt to CLI. i tried many examples and QProcess Documentation. Im able to exe just bash or command prompt by proc->start("cmd.exe/terminal.exe"). Plz can you code and Ui file... i try to analyse that and build further...
Thanks in Advance

squidge
21st December 2009, 10:01
Rajeshsan, please don't hijack other peoples threads. Ask your questions in your own thread, which people have already replied to you.