Re: Passing shell control to another app



Allistar wrote:

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.

Don't exit immediately, wait until the child process finishes. Or execl the
second instance without forking.

--
Salu2
.



Relevant Pages

  • Re: Passing shell control to another app
    ... 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. ...
    (comp.os.linux.development.apps)
  • Passing shell control to another app
    ... the shell prompt, yet the second instance is still running and still ... and to keep the logic flow the same same I want Linux to mimic what Windows ...
    (comp.os.linux.development.apps)
  • Re: Passing shell control to another app
    ... runs from a shell, to which it outputs quite a bit of information (using ... yet the second instance is still running and still ... extern char **environ; ... Hva skjer? ...
    (comp.os.linux.development.apps)