From b2712e35b948d7ab37cf6ef46bcdfea678506444 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 24 May 2001 21:58:39 +0000 Subject: 2000-05-24 Fernando Ruiz Casas * monitor/mon-prmisc.c: Correct print line. * shell/Makefile.am: Added new file telnetd.c. * shell/telnetd.c, shell/telnetd.h, shell/pty.c: New files. * shell/shell.c, shell/cmds.c, shell/shell.h: Numerous improvments: - The shell_init has a new parameter 'forever' because in /dev/console you need that this process runs forever but in tcp/ip not. (respawn?) - A new task for every session opened trought tcp/ip telnet client. (the chargen,daytime and more are possible of implementation but I ask me if they are necesary) - Exit from the session delete the task and when the client fails too. - More cmds have been implemented. (very reduced version of these) umask, chmod, id, whoami, rm, cat, ... - A reduced line edit has been implemented. Ctrl-C abort the input, Ctrl-d in the first position gives EOF (logout). '\b' and DEL makes the rubout operation. I think that readline() for every session spents a lot of resources. --- cpukit/libmisc/shell/README | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'cpukit/libmisc/shell/README') diff --git a/cpukit/libmisc/shell/README b/cpukit/libmisc/shell/README index 2d38451cc6..d0064d4fde 100644 --- a/cpukit/libmisc/shell/README +++ b/cpukit/libmisc/shell/README @@ -19,10 +19,12 @@ NOTES: 2. You only need a termios dev to start a new session, add your new commands and enjoy it. - +3. If you have tcp/ip inited you can start telnetd daemon. + You need register pseudo-terminals driver into device drivers table. + 16 ptyX termios device terminales are created into /dev/. + Calling rtems_initialize_telnetd() starts the daemon. + Enjoy it. FUTURE: 1. Adding new commands in cmds.c to give file manegement to shell. - -2. Create a telnetd daemon. (pseudo-terminal needed) -- cgit v1.2.3