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 | |
by bart (Canon) on Sep 02, 2002 at 09:08 UTC | |
by gnu@perl (Pilgrim) on Aug 31, 2002 at 22:30 UTC |