Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use Net::SSH::Perl my $ssh = Net::SSH::Perl->new("$_"); $ssh->login("user1", "pass1"); open (IN, "<hosts.txt" ) || die "Can't open users.txt"; while(<IN>) { chomp; $ssh->cmd("passwd"); $ssh->cmd("whatever"); $ssh->cmd("whatever"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Password change (Newbie)
by BUU (Prior) on Jul 01, 2003 at 18:41 UTC | |
|
Re: Password change (Newbie)
by jcpunk (Friar) on Jul 01, 2003 at 18:51 UTC | |
|
Re: Password change (Newbie)
by kutsu (Priest) on Jul 01, 2003 at 18:35 UTC |