1834414 Members
1900 Online
110067 Solutions
New Discussion

cu command on inetd

 
T.Ikuta_1
New Member

cu command on inetd

Hi.

I'd like to use "cu" command on inetd in below way,but my input was indicated in twice on screen.
Do you know good idea or this way is wrong?

--Configuration on server(sv_a)
1.added below line in /etc/inetd.conf
tty2a4 stream tcp nowait root /usr/bin/cu cu -l /dev/tty2a4

2.added below line in /etc/services
tty2a4 8004/tcp

3.restarted inetd
sv_a #kill -HUP INETD_PID
--
4.connect this server(sv_a) from another host(ws_a).
ws_a #telnet sv_a 8004

5.my input was indicated in twice on screen.
sv_a # ls /etc/hosts
ls /etc/hosts

/etc/hosts
sv_a #
sv_a #

Thanks.

T.Ikuta
3 REPLIES 3
Steven Sim Kok Leong
Honored Contributor

Re: cu command on inetd

Hi,

I have no idea. But I noticed this option -h which allows you to emulate local echo.

-h Emulate local echo, supporting calls to other computer systems that expect terminals to be set to half-duplex mode.

You might want to give that a try if that is of any help.

Hope this helps. Regards.

Steven Sim Kok Leong
sven verhaegen
Respected Contributor

Re: cu command on inetd

Hi

I fear I have some bad news for you , inetd as you describe isn't used to start commands it is in fact used for launching daemons that are listening on certain ports (no mather what you put in /etc/services) e.g. you cannot simply set telnet as command in the inetd , you have to put telnetd which is the telnet application itself to which the telnet command send a request , cu is a command not a daemon running so inetd doesn't know exactly what to do with it so that can cause all kinds of strange behaviour, I have no idea why you would like to use cu in this way , what exactly are you trying to achieve ? CU doesn't have a socket itself , it in fact is used for serial communications .. e.g. device files , thay are physical HardWare definitions and not virtual ports like sockets used by telnet
...knowing one ignores a greath many things is the first step to wisdom...
T.Ikuta_1
New Member

Re: cu command on inetd

Hi

Thanks for your helping.

As sven say,I think that cu command acted strange behavior.
I make a wrong use of cu command on inetd.
First of all,I'd like to develop a training system of operation on console for beginners in my company.
I have already developed a training system that user can connect on console with using cu command after login server.
But I'd like to make user to connect directly without using cu command.

Is there good idea?

Regards.

**Now system**
click a link(URL=telnet://sv_a) on web
open terminal window
input from here
| login:serial
| passwword:****
| $cu -l /dev/tty2a4
connected.

**My plan**
click a link on web(URL=telnet://sv_a:8004)
connected.