Subject: Re: automated telnet
To: Jean-Francois Fortier <jefortie@cgocable.ca>
From: Paul Goyette <paul@whooppee.com>
List: port-mac68k
Date: 03/28/2000 12:53:06
Try 

	cat <file> | telnet 34.34.34.34

On Tue, 28 Mar 2000, Jean-Francois Fortier wrote:

> Hi There,
> 
> In my IRIX box, I used to automate a telnet session using the following syntax:
> 
> telnet 34.34.34.34 < data
> 
> the "data" file contains the command to send to the remote host.
> 
> But in NetBSD, its doesn't work.  I've tried with different shell (csh,
> tsch, bash ...) I would like
> to know if there's a different way to send command to a telnet session  in
> order to automate it ?
> 
> Any idea ?
> 
> Jeff
> 
> 
> 

-----------------------------------------------------------------------
|   Paul Goyette  | PGP DSS Key fingerprint:  | E-mail addresses:     |
| Network Engineer|  BCD7 5301 9513 58A6 0DBC |  paul@whooppee.com    |
| & kernel hacker |  91EB ADB1 A280 3B79 9221 |  pgoyette@juniper.net |
-----------------------------------------------------------------------