Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use Net::Telnet; $t = new Net::Telnet(Timeout => 2810, Prompt => '/%/', Host => 'ip address' ); $t->login( "user", "password" ); { $t->cmd( "your command here" ); } $t->close;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: run command on multiple hosts
by sweetblood (Prior) on Aug 06, 2004 at 19:06 UTC | |
|
Re: run command on multiple hosts (use threads;)
by BrowserUk (Patriarch) on Aug 06, 2004 at 19:57 UTC | |
|
Re: run command on multiple hosts
by matija (Priest) on Aug 06, 2004 at 19:34 UTC | |
by Anonymous Monk on Oct 16, 2007 at 04:45 UTC | |
|
Re: run command on multiple hosts
by Anonymous Monk on Sep 27, 2018 at 06:56 UTC |