Summary - Telnet 90TL

From: Mak Andrew <Andrew.Mak_at_MIS.SYDNEY.nestleau.nestle.com>
Date: 23 Jul 96 16:37 HDT

Hello all,

I have got replies from the following people (sorry if I miss anyone)
     Ray Stell - stellr_at_vt.edu
     Hans Ranke - Hans.Ranke_at_regent.e-technik.tu-muenchen.de
     Louis Bouchard - bouchard_l_at_decus.fr
     Claude SOMA
     Trevor Stott - Trevor.Stott_at_sheridance.on.ca
     UFPEL-CPMET - ufpelrm_at_eu.ansp.br
     David Romani - romani_at_email.unc.edu

The majority suggest I use a freeware call "expect". However, due to lack of
experience in this freeware, I have yet to try this out. David Romani
suggest I use Kermit script instead of shell script. The wining solution
goes to the one from Louis Bouchard. She suggests the following script
 ----------------------------------------------------------------------------
 ----------
#!/bin/ksh

(echo "^M"; sleep 1
echo "access^M";sleep 1
echo "<USER_NAME>^M";sleep 1
echo "broadcast po 1 This is a test^M";sleep 1
echo "lo^M") | telnet TERMINAL_SERVER_NAME
 ----------------------------------------------------------------------------
 -----------
and explain the "sleep 1" is to allow the Terminal Server to react. I try
this out and it works like a champ.

Thank you for all who replies.

Andrew Mak

===========================================================
ORIGINAL POSTING:

Just wonder there is anyone who succeed in telnet to a DECserver 90TL in a
script. When ftp in a script, I can use a here document to include all the
commands I want to issue to the remote machine. But telnet to a machine does
not get pass the initial stage, anyone get any idea?

The script below is what I use to try to telnet

     #!/bin/ksh
     telnet TERMINAL_SERVER << EOF
     access
     broadcast po 1 "Hello"
     lo
     EOF

and I get the following result

     Connected to TERMINAL_SERVER
     Escape character is '^]'.
     Connection closed by foreign host.
============================================================
Received on Tue Jul 23 1996 - 08:49:54 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT