From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,55a4e998b86bb3a0 X-Google-Attributes: gidfee84,public From: Phil Farrell Subject: Re: telnet from tty AND stdin Date: 1998/07/16 Message-ID: <35AE421B.6E6D@stanford.edu>#1/1 X-Deja-AN: 372098850 Content-Transfer-Encoding: 7bit References: <900437378.523933@duckhole.imec.be> To: Marc Elsen Content-Type: text/plain; charset=us-ascii Organization: Stanford University School of Earth Sciences Mime-Version: 1.0 Reply-To: farrell@stanford.edu Newsgroups: comp.unix.osf.osf1 Marc Elsen wrote: > > Does anyone know of a version of telnet for DUX4.0 > which can also read from stdin instead of tty only ? > Constructs like : > > telnet< -foo-whatever- > EOM You can install the "expect" public domain software package, that allows you to provide scripted input to any normally interactive command. Expect can be programmed to wait for the appropriate responses from the program before feeding the next command, just like an interactive user would. -Phil Farrell Computer Systems Manager Stanford University School of Earth Sciences farrell@pangea.stanford.edu