![]() |
![]() OCAU News - Wiki - QuickLinks - Pix - Sponsors |
|
|||||||
| Notices |
|
Sign up for a free OCAU account and this ad will go away! Search our forums with Google: |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Member
Join Date: Jul 2002
Location: Old Trafford, Manchester
Posts: 3,236
|
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 =( |
|
|
|
| Join OCAU to remove this ad! |
|
|
#2 |
|
Member
Join Date: Mar 2002
Posts: 873
|
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.
|
|
|
|
|
|
#3 |
|
Member
Join Date: Jul 2002
Location: Old Trafford, Manchester
Posts: 3,236
|
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 =( |
|
|
|
|
|
#4 |
|
Member
Join Date: Jan 2003
Location: Beverly Hills 90210
Posts: 1,451
|
I'm sure if you searched google with "fork() example" it would tell you.
|
|
|
|
![]() |
| Bookmarks |
|
Sign up for a free OCAU account and this ad will go away! |
| Thread Tools | |
|
|