Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] Telnet ... doesn't work

Expand Messages
  • Jeremiah Megie
    definately a typo! Thanks! Jeremiah ... you ... work. I ... because ... it ... http://docs.yahoo.com/info/terms/ later, J ... http://iam.bmezine.com/?keldon
    Message 1 of 4 , Apr 29, 2001
    • 0 Attachment
      definately a typo! Thanks!

      Jeremiah

      On Sat, 28 Apr 2001 15:35:23 -0700, perl-beginner@yahoogroups.com wrote:

      > I hope this is just a common typo and not the root of your troubles, but
      you
      > forgot to include the opening '{' to your sub 'add_dns9'.
      > -Mike
      >
      > On Wednesday 25 April 2001 10:18, you wrote:
      > > I have some code that tries to telnet to a machine, but it doesn't
      work. I
      > > have narrowed it down to where it hangs at. Here is the code:
      > >
      > > #!/usr/bin/perl
      > > use Net::Telnet;
      > >
      > > &add_dns9
      > >
      > > sub add_dns9
      > > $host = 'dns9.domain.net';
      > > $username = 'actualuserid';
      > > $passwd = 'actualpasswd';
      > > $t = Net::Telnet->new( Timeout => 10,
      > > Host => $host,
      > > Dump_Log => 'dump.log'
      > > Input_log => 'input.log');
      > > $t->login($username, $passwd);
      > > $t->close;
      > > }
      > >
      > >
      > > It sits there hanging at the password, yet I know it's all correct
      because
      > > I can telnet manually and it works fine. Now, here's the kicker. This
      > > *exact* code works fine in a different script. The only difference is;
      it
      > > is telneting to a different server. So, am I to assume that this is a
      > > server issue?
      > >
      > >
      > > Jeremiah
      > >
      > >
      > >
      > >
      > >
      > > _______________________________________________________
      > > Send a cool gift with your E-Card
      > > http://www.bluemountain.com/giftcenter/
      > >
      > >
      > >
      > >
      > >
      > > Your use of Yahoo! Groups is subject to
      http://docs.yahoo.com/info/terms/


      later,
      J
      |===============|
      | My Websites!! |
      |===============|

      http://iam.bmezine.com/?keldon
      http://www.creatyveinsanity.com





      _______________________________________________________
      Send a cool gift with your E-Card
      http://www.bluemountain.com/giftcenter/
    Your message has been successfully submitted and would be delivered to recipients shortly.