PDA

View Full Version : When I send a command in QT



espariz
20th June 2006, 20:10
I need an instrucion to send a "ls -l > fich" command! I try with Qprocess instruction but does not function...

jacek
20th June 2006, 20:15
QProcess doesn't understand ">", you must use shell for this:
process.start( "/bin/sh", QStringList() << "-c" << "ls -l > fich" );