tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Summary - Telnet 90TL
@ 1996-07-23 16:37 Mak Andrew
  0 siblings, 0 replies; only message in thread
From: Mak Andrew @ 1996-07-23 16:37 UTC (permalink / raw)
  To: tru64-unix-managers


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.
============================================================

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-07-23 16:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-07-23 16:37 Summary - Telnet 90TL Mak Andrew

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox