Re: Invoking shell through a program and working on it interactively
sagar.borikar_at_gmail.com
Date: 04/11/05
- Next message: Binary: "Re: Operating system design questions"
- Previous message: Josef Moellers: "Re: how kernel stores data in structures?"
- In reply to: Basile Starynkevitch [news]: "Re: Invoking shell through a program and working on it interactively"
- Next in thread: Sagar: "Re: Invoking shell through a program and working on it interactively"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 10 Apr 2005 23:45:38 -0700
Basile Starynkevitch [news] wrote:
> On 2005-04-11, Tom_Punter <sagar.borikar@gmail.com> wrote:
> > Hello,
> >
> > I am facing a problem regarding invoking a shell and working with
it.
> > Following is the scenario.
> [...]
> > Can anybosy suggest me alternate solution?
>
> Directly using the fork(2) execve(2) dup(2) pipe(2) dup2(2) system
> calls (and the SIGCHLD signal).
>
> I suggest reading a good book on "Advanced Unix Programming" (like
> R.Stevens')
>
> If you need pseudo-ttys in your fork()-ed applications, things may
> become a bit more tricky. You might consider using the expect command
> interpreter (from the Tcl world).
>
> --
> Basile STARYNKEVITCH http://starynkevitch.net/Basile/
> email: basile<at>starynkevitch<dot>net
> aliases: basile<at>tunes<dot>org = bstarynk<at>nerim<dot>net
> 8, rue de la Faïencerie, 92340 Bourg La Reine, France
- Next message: Binary: "Re: Operating system design questions"
- Previous message: Josef Moellers: "Re: how kernel stores data in structures?"
- In reply to: Basile Starynkevitch [news]: "Re: Invoking shell through a program and working on it interactively"
- Next in thread: Sagar: "Re: Invoking shell through a program and working on it interactively"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|