Re: Telnet Program

2002-05-23 Thread drieux
On Thursday, May 23, 2002, at 01:01 , Felix Geerinckx wrote: > on Thu, 23 May 2002 19:51:07 GMT, Drieux wrote: > >> the trick of course is that to an arbitrary port you may >> really want to be at the > > You can specify a port number in Net::Telnet->new(...) oh heavens yes... but that would be

Re: Telnet Program

2002-05-23 Thread Felix Geerinckx
on Thu, 23 May 2002 19:51:07 GMT, Drieux wrote: > the trick of course is that to an arbitrary port you may > really want to be at the You can specify a port number in Net::Telnet->new(...) -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

RE: Telnet Program

2002-05-23 Thread Beau E. Cox
Jason - You might want to grab Net::Telnet from CPAN. This snippet is from the documentation: use Net::Telnet (); $t = new Net::Telnet (Timeout => 10, Prompt => '/bash\$ $/'); $t->open("sparky"); $t->login($username, $passwd); @lines = $t->cmd("/usr/bin/who"); print @lines;

Re: Telnet Program

2002-05-23 Thread Felix Geerinckx
on Thu, 23 May 2002 19:37:47 GMT, Jason Frisvold wrote: > I need to write a program that telnets to a specific port and logs all > the output to a file. Is there an easy way to do this in perl? I tried > this via the command line (telnet 1.2.3.4 23 > my.log &) but it > apparently buffers every

Re: Telnet Program

2002-05-23 Thread drieux
On Thursday, May 23, 2002, at 12:37 , Jason Frisvold wrote: > I need to write a program that telnets to a specific port and logs all > the output to a file. Is there an easy way to do this in perl? I tried > this via the command line (telnet 1.2.3.4 23 > my.log &) but it > apparently buffers