in reply to Re: grabbing logfile excerpts from remote machines
in thread grabbing logfile excerpts from remote machines

MY GOD WAS I MAKING THAT HARDER THAN IT HAD TO BE!!!

This was SOOOOOOOOOOOOO easy, thanks for the Net::Telnet tip.

BTW, here's the code. I went from what I have above to this:

#!/usr/bin/perl –w use strict; use Net::Telnet; my $tnet = new Net::Telnet; $tnet = new Net::Telnet; $tnet->open("deneb"); $tnet->login($username, $passwd); my @lines = $tnet->cmd("tail /var/log/syslog"); print @lines;

Replies are listed 'Best First'.
Re: Re: Re: grabbing logfile excerpts from remote machines
by sauoq (Abbot) on Aug 31, 2002 at 17:59 UTC
    All I can use is what comes with perl 5.00503 and I cannot load any additional modules.

    Well, I guess it's a good thing bart gave you that tip in spite of the above comment in your original question. Does Net::Telnet really come with 5.00503?

    -sauoq
    "My two cents aren't worth a dime.";
    
      Does Net::Telnet really come with 5.00503?

      Weeell... CPAN.pm likes to use some of the Net::* stuff, which can be a reason why the whole suite might be there. But OTOH, maybe not...

      I think that I may be able to talk my manager into letting me add Net::Telnet but he is kind of wierd about upgrading currently installed software. But thanks for your input.