Subject: Re: automated telnet
To: port-mac68k@netbsd.org <port-mac68k@netbsd.org>
From: James Kelly <james.kelly@tcs.wap.org>
List: port-mac68k
Date: 04/11/2000 09:30:04
ok just to confuse matters a bit ;-) at work I use Expect to automate telnet. Under
Expect you can "record" a script by using the command autoexpect then doing a telnet
session. Then you edit the script you recorded and chmod it to 700 and away you go.
Jim Kelly

Ken Hughes wrote:

> On Tue, 28 Mar 2000, Paul Goyette wrote:
> > On Tue, 28 Mar 2000, Jean-Francois Fortier wrote:
> >> In my IRIX box, I used to automate a telnet session using the following syntax:
> >>         telnet 34.34.34.34 < data
> >> <...  doesn't work in NetBSD shells csh, tcsh, bash ... ???>
> >
> > Try       cat <file> | telnet 34.34.34.34
>
> Could someone tell me why this is the case?