Executing a C++ program in another

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2004
Posts: 2
Reputation: rajistephen is an unknown quantity at this point 
Solved Threads: 0
rajistephen rajistephen is offline Offline
Newbie Poster

Executing a C++ program in another

 
0
  #1
Nov 4th, 2004
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:
Last edited by alc6379; Nov 4th, 2004 at 11:34 pm.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 220
Reputation: frrossk is an unknown quantity at this point 
Solved Threads: 9
frrossk's Avatar
frrossk frrossk is offline Offline
Posting Whiz in Training

Re: HELP: Executing a C++ program in another

 
0
  #2
Nov 4th, 2004
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 2
Reputation: rajistephen is an unknown quantity at this point 
Solved Threads: 0
rajistephen rajistephen is offline Offline
Newbie Poster

Re: HELP: Executing a C++ program in another

 
0
  #3
Nov 5th, 2004
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC