Open a shell for a an individual task

Adam Lackorzynski adam at os.inf.tu-dresden.de
Sat Jul 8 00:32:16 CEST 2017


Hi Christoph,

On Tue Jul 04, 2017 at 13:15:46 +0000, Hennebold, Christoph wrote:
> I'am trying to write an interactive client/server system which consists of a client component that runs its own shell, and the corresponding server which provides various interfaces.
> 
> 
> I was wondering if it is possible to spawn a shell for the client during the initialization with Ned or if it is possible at all?
> 
> (Besides running Ned in interactive mode)

I'm not sure I understand this correctly but is the question whether it
is possible to start an interactive program (which a 'shell' would be)?
Yes, a simple way is to ensure your shell has the 'log = L4.Env.log' in
its start sequence in ned. Then link against the libc_be_stdin library
which gives you a working getchar() (or use libreadline).


Adam



More information about the l4-hackers mailing list