[Thamesvalley-pm] using ssh within perl scripts
Adam Trickett
adam.trickett at iredale.net
Tue Oct 30 11:36:18 PDT 2007
On Tuesday 30 Oct 2007, Greg Matthews wrote:
> Seems like I'm the only one to ask for advice here...
>
> I'm using ssh to connect to a series of machines like so:
>
> open( SSH, "$ssh_bin $ssh_opts $host $command |") or die...
> while (<SSH>) {
> ....
> }
> close SSH;
>
Did you consider the Net::SSH::Perl or Net::SSH module, or do you really need
to do it this way?
--
Adam Trickett
Overton, HANTS, UK
Capitalism is the extraordinary belief that the nastiest of men, for
the nastiest of reasons, will somehow work for the benefit of us all.
-- John Maynard Keynes
More information about the Thamesvalley-pm
mailing list