Overclockers Australia Forums

OCAU News - Wiki - QuickLinks - Pix - Sponsors  

Go Back   Overclockers Australia Forums > Software Topics > Programming & Software Development

Notices


Sign up for a free OCAU account and this ad will go away!
Search our forums with Google:
Reply
 
Thread Tools
Old 13th March 2004, 11:17 PM   #1
MadOnion87 Thread Starter
Member
 
MadOnion87's Avatar
 
Join Date: Jul 2002
Location: Old Trafford, Manchester
Posts: 3,236
Default using system() in c++

i was making a program that starts another program by using

system("abc.exe");

however, when it starts, it will wait till the other program to close then it closes, how do i make it so that it will exit after running abc.exe?

btw its a console program
__________________
Manchester United
Old Trafford, theatre of dreams

Any language that doesn't support inline assembly is too high level for me =(
MadOnion87 is offline   Reply With Quote

Join OCAU to remove this ad!
Old 14th March 2004, 12:07 PM   #2
Kermalius
Member
 
Join Date: Mar 2002
Posts: 873
Default

you want to fork a new process, and in the child, make the system call. Alternatley, fork and replace the call to system with a call to exec.
Kermalius is offline   Reply With Quote
Old 14th March 2004, 12:28 PM   #3
MadOnion87 Thread Starter
Member
 
MadOnion87's Avatar
 
Join Date: Jul 2002
Location: Old Trafford, Manchester
Posts: 3,236
Default

ummm sorryfor my newb-ness but what do you mean by fork?
__________________
Manchester United
Old Trafford, theatre of dreams

Any language that doesn't support inline assembly is too high level for me =(
MadOnion87 is offline   Reply With Quote
Old 15th March 2004, 12:18 AM   #4
Mariah
Member
 
Mariah's Avatar
 
Join Date: Jan 2003
Location: Beverly Hills 90210
Posts: 1,451
Default

I'm sure if you searched google with "fork() example" it would tell you.
Mariah is offline   Reply With Quote
Reply

Bookmarks

Sign up for a free OCAU account and this ad will go away!

Thread Tools

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 On
HTML code is Off

Forum Jump


All times are GMT +10. The time now is 8:19 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. -
OCAU is not responsible for the content of individual messages posted by others.
Other content copyright Overclockers Australia.
OCAU is hosted by Internode!