From: Mak Andrew <Andrew.Mak () MIS ! SYDNEY ! nestleau ! nestle ! com>
To: tru64-unix-managers
Subject: Summary - Telnet 90TL
Date: Tue, 23 Jul 1996 16:37:00 +0000 [thread overview]
Message-ID: <96076335021591.tru64-unix-managers.marc@archive.invalid> (raw)
Hello all,
I have got replies from the following people (sorry if I miss anyone)
Ray Stell - stellr@vt.edu
Hans Ranke - Hans.Ranke@regent.e-technik.tu-muenchen.de
Louis Bouchard - bouchard_l@decus.fr
Claude SOMA
Trevor Stott - Trevor.Stott@sheridance.on.ca
UFPEL-CPMET - ufpelrm@eu.ansp.br
David Romani - romani@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.
============================================================
reply other threads:[~1996-07-23 16:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox