From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076335021591.tru64-unix-managers.marc@archive.invalid> From: Mak Andrew Date: Tue, 23 Jul 1996 16:37:00 +0000 To: tru64-unix-managers Subject: Summary - Telnet 90TL X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076335021591 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 "^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. ============================================================