[Qt-interest] Indirection operator not working from QProcess
Srdjan Todorovic
todorovic.s at googlemail.com
Tue Jun 8 14:32:05 CEST 2010
Hi,
On 8 June 2010 12:56, Sujan Dasmahapatra <sujan.dasmahapatra at gmail.com> wrote:
> I am trying to execute an external process for LINUX from within my QT
> application. Please see below.
>
> ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> QProcess *process = new QProcess(this);
> process->start("qsub runbatch | awk '{print $3}' > processID.dat");
I was about to suggest that this is due to the program image being
intertwined with the arguements, but I notice that QProcess does have
an overload that can take that.
My other guess is perhaps that QProcess does not emulate a shell and
thus has no support for pipes or redirection.
Srdjan
More information about the Qt-interest-old
mailing list