[Qt-interest] External Process Issue

Sujan Dasmahapatra sujan.dasmahapatra at gmail.com
Thu Oct 1 11:17:36 CEST 2009


Dear Friends

I am running an external process from withing my application. Now the
external process during running it asks to enter the value 1 or 2. if 1 is
entered then it asks for another value and if 2 is entered it continues to
run and then ends.

I am running this process from a different directory other than the current
directory so before running the process I am setting that directory as
working directory.

Now the process starts and stops waiting for the user to enter 1 or 2. How
could I enter this value so that my process continues to run.

Give me some idea !!

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
QString program = "hypgrid2D";
QProcess *process = new QProcess(this);
process->setWorkingDirectory("./Grid/");
process->start(program);
// Now the program runs but it stops as it needs the value 1 or 2  but how
could I give this values from my application ??
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////

-- 
Thanks & Regards
S. Dasmahapatra
B.E. (Aeronautics-Aerodynamics)
Bangalore, India
Ph:91-9900839788
Office:91-80-66470248
mail id : sujan.dasmahapatra at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091001/836bd3bf/attachment.html 


More information about the Qt-interest-old mailing list