Try
system("sh test");
system("test.exe");
i think you will need the header 'process.h' for this.
Agni
Practically a Master Poster
655 posts since Dec 2007
Reputation Points: 431
Solved Threads: 116
1> you dont need to create separate threads for same problem. you could have 'edit'ed your earlier post instead or if it was replied to you could have again 'replied' with your query.
2>system should execute any executable, it need not have a .exe extension, as per my understanding if you're on *NIX you can give the name of any file which has execute permission.
Agni
Practically a Master Poster
655 posts since Dec 2007
Reputation Points: 431
Solved Threads: 116
what is 'START' program? is it a shell script or is it a .exe file? Are you on windows or *NIX?
Agni
Practically a Master Poster
655 posts since Dec 2007
Reputation Points: 431
Solved Threads: 116
Why do you need to write and call separate c++ programs for each of these functions to execute? Is there a special requirement to do this? Was writing different function not allowed? if you still have to do it i think you can do this by using the 'system' command and giving the program name without any extension. I still fail to understand the requirement though and would like to attach a 'Do at your own risk' tag to it :)
Just out of curiosity, you do know that if you call a function from 'MAIN', main will not terminate till the control returns back from the function, right?
Agni
Practically a Master Poster
655 posts since Dec 2007
Reputation Points: 431
Solved Threads: 116
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439