Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Telnet & Console & Vxworks shell

662 views
Skip to first unread message

Nuno Delgado

unread,
Oct 21, 1998, 3:00:00 AM10/21/98
to
Hi VxWorkers!

We are developing an hardware equipment that will have both an Ethernet and
serial port.
In order to configure this equipment, the users should be able to connect to
it:
1 - directly through a console.
2 - remotely through telnet or rlogin over the ethernet.

The problem is that I want any user to see MY OWN application when he
connects
through telnet or through console. Moreover, stdin, stdout and stderr should
always
be "connected" with my application instead of the shell. The user doesn't
need
to be aware of the shell existence. The shell has to be running just to
support telnet and rlogin connection but "hidden".
However, I am facing some problems that I will briefly describe.

1 - In order to run telnet, I have to enable the shell but after
establishing
the telnet connection I get the shell prompt. How can I "show" my
application
instead of the shell?

2 - If I define "INCLUDE_USER_APPL" in usrConfig.c, the shell starts my
application
automatically in parallel . However, stdin is always connected to
the shell and I am not able to receive any commands directly to my
application...


How can I deal with these 2 situations? Are they compatible? Any ideias?

Thanks for you attention!

Best regards,

Nuno

Travis Sawyer

unread,
Oct 21, 1998, 3:00:00 AM10/21/98
to
Nuno:

Talk to your FAE from WindRiver. They should be able to supply you
with 'unsupported' telnet code that you can bolt in and replace the
existing telnet code and shell. The telnet code goes in very smoothly.

You give the new telnet code the entry point for your 'console' code
and also an 'exit' function that properly terminates the telnet session.
The code also supports more than a single session.

HTH

-travis

0 new messages