Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!umich!caen!math.lsa.umich.edu!math.lsa.umich.edu!emv From: emv@math.lsa.umich.edu (Edward Vielmetti) Newsgroups: comp.lang.perl Subject: Re: Scripting a TELNET session Message-ID: Date: 7 Jul 90 01:26:24 GMT References: <1059@idunno.Princeton.EDU> Sender: usenet@math.lsa.umich.edu Followup-To: comp.lang.perl Organization: University of Michigan Math Dept., Ann Arbor MI. Lines: 22 In-Reply-To: fuchs@tsar.Princeton.EDU's message of 5 Jul 90 18:58:36 GMT [scripted telnet] Try "expect" from Don Libes, announced somewhere and reposted to comp.archives just a few days ago. ftp'able from durer.cme.nist.gov. The embedded language is John Ousterhout's Tcl, which you need to pick up separately. Tcl is not perl, but it may be enough of a language to do your job. The other alternative for telnet at least is to use the socket interface to make the connection to the remote host. A disadvantage here is that a plain old socket doesn't do all of the IAC DO/DONT/WILL/WONT stuff that a proper Telnet does, you may be able to cope regardless. Perl will do that for you, & I was able to glue together a simple NNTP client with it. Certainly something to navigate through command prompts is doable. --Ed Edward Vielmetti, U of Michigan math dept comp.archives moderator