Passing shell control to another app
- From: Allistar <a@xxxxx>
- Date: Wed, 27 Sep 2006 08:53:31 +1200
Hi all,
I have an application (developed in C++ and compiled using gcc) that runs
from a shell, to which it outputs quite a bit of information (using
printf).
Part way through the execution of the application it executes another
instance of the same app (using fork followed by execl) and then the
original instance exits. When the original instance exists the user sees
the shell prompt, yet the second instance is still running and still
outputting to the shell.
Is there a way of doing this so that control of the shell is passed to the
second instance? I.e. I don't want the user to get control of the shell
until after the second instance has finished.
(It does this as this application is compiled for both Windows and Linux,
and to keep the logic flow the same same I want Linux to mimic what Windows
does).
Thanks,
Allistar.
.
- Follow-Ups:
- Re: Passing shell control to another app
- From: jasen
- Re: Passing shell control to another app
- From: Lars Rune Nøstdal
- Re: Passing shell control to another app
- From: Julián Albo
- Re: Passing shell control to another app
- Prev by Date: Re: typedef in a struct
- Next by Date: Re: Passing shell control to another app
- Previous by thread: Re: Serial port programming C++
- Next by thread: Re: Passing shell control to another app
- Index(es):
Relevant Pages
|