Open a shell for a an individual task

Hennebold, Christoph christoph.hennebold at student.kit.edu
Sat Jul 8 09:15:54 CEST 2017


Hi Adam, 

thank your for your reply, this exactly what I'm trying to do.

I have a server running a filesystem and simply hook up with my client to use its interfaces.
This is done with basic commands  like ls, open or mkdir, which the user can type in during runtime.

Best regards,
Christoph
________________________________________
From: Adam Lackorzynski <adam at os.inf.tu-dresden.de>
Sent: Saturday, July 8, 2017 0:32
To: Hennebold, Christoph
Cc: l4-hackers at os.inf.tu-dresden.de
Subject: Re: Open a shell for a an individual task

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