[Qt-interest] qprocess cannot run unix commands?

Denis Mingulov denis at mingulov.com
Mon Jun 7 13:28:20 CEST 2010


Hi,

On Mon, Jun 7, 2010 at 2:09 PM, Gabriele Kahlout
<gabriele at mysimpatico.com> wrote:
> QProcess::execute("ls");
>
> works, but not:
>
> QProcess::execute("cd;ls");

"cd;ls" is not a file.

Try:
QProcess::execute("sh", QStringList() << "-c" << "\"cd;ls\"");


-- 
Best Regards,
Denis Mingulov



More information about the Qt-interest-old mailing list