you can use Expect to automate telnet and other tasks
http://expect.nist.gov/

Austad, Jay wrote:
> Doh, looks like what I need is mgetty or getty.  Anyone have any idea how to
> set this up so it will auto telnet?  I'm playing with it now but can't seem
> to get it working.
> 
> -jay
> 
> > -----Original Message-----
> > From: Austad, Jay [mailto:JAustad at temgweb.com]
> > Sent: Tuesday, September 23, 2003 12:04 PM
> > To: 'tclug-list at mn-linux.org'
> > Subject: RE: [TCLUG] crazy idea
> > 
> > 
> > Would /usr/bin/chat be able to do this?
> > 
> > > -----Original Message-----
> > > From: Austad, Jay [mailto:JAustad at temgweb.com]
> > > Sent: Tuesday, September 23, 2003 10:54 AM
> > > To: 'tclug-list at mn-linux.org'
> > > Subject: RE: [TCLUG] crazy idea
> > > 
> > > 
> > > Hmm, after doing some testing, it seems I can use the current 
> > > serial ports.
> > > I just need a program that can bind to the serial port, 
> > open a telnet
> > > connection to a server, and then pass the data both ways so 
> > > the program that
> > > uses the serial port thinks it's coming from the modem.  
> > > Anyone know of such
> > > a program that can bind to the serial port?
> > > 
> > > For example, the program that needs this would open the 
> > > serial port and dial
> > > using ATDT16125551212.  When my little wrapper program which 
> > > is bound to the
> > > serial port sees the ATDT string, he would fire off a telnet 
> > > session to a
> > > specific IP and pass the data both directions.  When he sees 
> > > ATZ, he should
> > > disconnect.  Probably not too hard to do in perl, but I 
> > > haven't done any
> > > socket programming in perl.  Should be simple.
> > > 
> > > -jay
> > > 
> > > > -----Original Message-----
> > > > From: Andy Zbikowski (Zibby) [mailto:zibby+tclug at ringworld.org]
> > > > Sent: Tuesday, September 23, 2003 9:32 AM
> > > > To: tclug-list at mn-linux.org
> > > > Subject: Re: [TCLUG] crazy idea
> > > > 
> > > > 
> > > > Maybe do something similar to what my TiVo does?
> > > > 
> > > > My TiVo is hooked up to a Linux box via a null modem cable. 
> > > > The Linux box
> > > > runs pppd on the serial device, and answers calls from TiVo, 
> > > > and forwards
> > > > the traffic over it's ethernet connection.
> > > > 
> > > > Not sure if a similar setup would be useful to you or not, 
> > > > but throwing it
> > > > out there anyway. :)
> > > > 

-- 
scot

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list