954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Executing a C++ program in another

hai friendz,

I am a Bioinformatics Masters degree student. I am doing my final semester project in the topic Molecular Docking on C++ in Linux platform. During the programming I felt a problem in calling/executing a progam in to my program. I have to call a program which accept a PDB file( which is from my program) as input and gives an output file containing an energy value. I used many syntaxes including,
system("./progam name");
But result is not getting & the window gets hanged for long time.
Can you please send your idea regarding any possible solution of this problem. Hope ur reply soon.

regards,

Raji Stephen
:cry:

rajistephen
Newbie Poster
2 posts since Nov 2004
Reputation Points: 10
Solved Threads: 0
 
frrossk
Posting Whiz in Training
220 posts since Sep 2004
Reputation Points: 17
Solved Threads: 9
 

Hi frrossk,

Thank you for this valuable information. The program which I have to execute inside my C++ program is in binary form. My ultimate problem is I have to execute this nearly hundred times for different input files from my program. This can't be done parellel because of some selection creteria. If I use system("process1"); where should I place the input file in order to identify it by that program?. Heard from somewhere that only system("process1"); line will execute at the end of the host program. Is that true?

Can it be possible to convert a program in the binary form to its original C++ format?
Hope ur kind help.

Thanking you.

Raji Stephen

rajistephen
Newbie Poster
2 posts since Nov 2004
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You