LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-22-2004, 11:37 PM   #1
keos
LQ Newbie
 
Registered: Feb 2004
Posts: 3

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xterm will not produce output with -lf parameter jarobman Linux - General 2 03-06-2005 02:12 AM
Guidance needed: running an application on startup. nyumedic2000 Linux - General 1 07-15-2004 04:01 PM
How to produce two binary program using automake melinda_sayang Programming 1 06-05-2004 11:30 AM
Produce random character with c program liguorir Linux - Software 4 05-23-2004 06:30 PM
Running FTP inside Shell Script truncates files jbhanc0125 Red Hat 3 01-16-2004 11:37 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration