Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.cis.okstate.edu!news.ksu.ksu.edu!news.physics.uiowa.edu!math.ohio-state.edu!howland.reston.ans.net!gatech!newsfeed.internetmci.com!in2.uu.net!sooner.net!usenet From: Rusty Weaver <rusty@sooner.net> Newsgroups: comp.unix.bsd.bsdi.misc Subject: rcmd using telnet Date: Sun, 14 Jan 1996 14:45:37 -0800 Organization: Sooner Net Lines: 29 Message-ID: <30F98791.35D3@sooner.net> NNTP-Posting-Host: p13.sooner.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.0b4a (Win16; I) We have a router which needs attention daily and I have to telnet into it each time. The router uses an OS which is a unix-dos hybrid and I can't compile binaries to run on it so I can't create my own server deamon to connect to. There is no remote command deamon either. Someone suggested that I use telnet by putting commands into a file and 'cat'ing them to telnet such as: root <-- login id %xMqpst) <-- password command 1 <-- first command . . . EOF When I try it I just get: trying "IP ADDRESS" Connected to "MACHINE" Escape character is '^]'. Welcome to ... login: Connection closed by foreign host. # Has anyone done this? -Rusty