#!/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;
In reply to run command on multiple hosts by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |