PDA

View Full Version : Problem with QProcess



ms20020048
11th May 2007, 18:39
I have the 2 following commands:

process.start("rm -f ./temp/frame0001.jpg");

and

process.start("rm -f ./temp/frame*.jpg");

The first worked fine but the second did not work. (Now I'm using QT4 in Linux FC4)

Please give me advices.

jacek
11th May 2007, 20:03
*, |, >, <, & and similar characters are interpreted by the shell. If there is no shell, they won't work.

Try:
process.start("sh -c \"rm -f ./temp/frame*.jpg\"");