How to launch an app from another app
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > How to launch an app from another app




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    How to launch an app from another app  
patrick carosso


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-26-04 10:55 PM

Hello,
I need do start an app from another.
Now I use then execv system call: the secondary app starts,
but the first exits! I need the first to go on running!
How can I do? Is there another system call?
Thank you!





[ Post a follow-up to this message ]



    Re: How to launch an app from another app  
Måns Rullgård


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-26-04 10:55 PM

"patrick carosso" <carossopatrick@yahoo.it> writes:

> Hello,
> I need do start an app from another.
> Now I use then execv system call: the secondary app starts,
> but the first exits! I need the first to go on running!
> How can I do? Is there another system call?
> Thank you!

Don't multipost.

--
Måns Rullgård
mru@mru.ath.cx





[ Post a follow-up to this message ]



    Re: How to launch an app from another app  
Nick Landsberg


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-26-04 10:55 PM

patrick carosso wrote:

> Hello,
> I need do start an app from another.
> Now I use then execv system call: the secondary app starts,
> but the first exits! I need the first to go on running!
> How can I do? Is there another system call?
> Thank you!

the exec family of system calls specifically
supercedes the old process with the new
process.

Either:

1. check out the man pages for fork(2)
and wait(2) and be very, very careful.

or:

2. check out system(3), which
encapsulates the fork(2)/exec(2)/wait(2)
family of calls for you.


NPL

--
"It is impossible to make anything foolproof
because fools are so ingenious"
- A. Bloch





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:03 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register