[Qt-interest] Indirection operator not working from QProcess

Sujan Dasmahapatra sujan.dasmahapatra at gmail.com
Tue Jun 8 13:56:53 CEST 2010


Dear Friends
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");
process->waitForStarted(-1);
process->waitForFinished(-1);
process->terminate();
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
This should execute
qsub runbatch | awk '{print $3}'  > processID.dat
which is a LINUX command  the ledt part  of >
qsub runbatch | awk '{print $3}'
should return a process ID which is an interger and I want this to be
written on a file
processID.dat
which I'll use later.

But I can see this process is not writing any file by name processID.dat
Can anyone help me to resolve this problem , why its not executing a LINUX
process

Thanks in advance


-- 
Thanks & Regards
Sujan Dasmahapatra
B.E. (Aeronautics)
Bangalore, India
Ph:91-9900839788
Office:91-80-66470248
mail id : sujan.dasmahapatra at gmail.com
yahoo msn : dasmahapatra.aerodynamics at yahoo.co.in
icq # 556023244
skype:sujan.dasmahapatra at skyepe.com <skype%3Asujan.dasmahapatra at skyepe.com>
msn: sujan.dasmahapatra at hotmail.com
url: http://www.aerocreators.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100608/b7d4f0c7/attachment.html 


More information about the Qt-interest-old mailing list