tags:

views:

116

answers:

1

QProcess procWriteProject ..

...

1) procWriteProject.start("qconf",QStringList() << " -sprj " << projectList[0] << " >> " << "\"/tmp/testing.txt\"");

2) procWriteProject.start("qconf -sprj " + projectList[0] + " >> " + "/tmp/test_settings");

what is the possible way to make this command work. I need that after this command is executed that file test_settings.txt in tmp folder get created and contain output from qconf -sprj command.

Brgds,

kNish

+3  A: 
QProcess procWriteProject;
procWriteProject.setStandardOutputFile("/tmp/test_settings.txt");
procWriteProject.start("qconf", QStringList() << "-sprj" << projectList[0]);
baysmith