LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Running a program inside my QT application does not produce needed output files??? (http://www.linuxquestions.org/questions/programming-9/running-a-program-inside-my-qt-application-does-not-produce-needed-output-files-149408/)

keos 02-22-2004 11:37 PM

Running a program inside my QT application does not produce needed output files???
 
I'm writing an application in QT. I need to run a another program named visual inside my code.

[1] I first used the C function system(). It ran the program but it did not write the output files that i need.

[2] I change the access mode of the visual file to read+write+execute, still the system call to visual did not output any files.

[3] I'm always on the root when i ran my program, so Im sure that i have write privileges; still didn't work

[4] I used the QT class QProcess and it run the visual program but there were no output files produced.

[5] I tried placing the visual executable file in /usr/local/bin and /usr/bin directory so that i can call it glabally; still didn't work

I previously wrote a program that runs on the console, and it ran the visual program and it produced the files that i need...I just used the system() function to call visual in that program.

Is there any difference between running another program in a console application and in a QT application?

Help. Thanks.


All times are GMT -5. The time now is 12:16 AM.