metlhed_ has asked for the wisdom of the Perl Monks concerning the following question:
My question is what can i do to make this work, why is this not working, and is there a better way to do this. Thanks for any help.#!/usr/bin/perl -w use strict; use Net::SSH::Perl; my $cmd = "ping -c 3 perlmonks.org"; my $ssh = Net::SSH::Perl->new("192.168.1.1"); $ssh->login("user", "pass"); my($a, $b, $c) = $ssh->cmd($cmd); print "$a\n$b\n$c\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: commands through ssh
by suaveant (Parson) on Oct 05, 2001 at 20:09 UTC | |
|
Re: commands through ssh
by ronzomckelvey (Acolyte) on Oct 24, 2001 at 08:57 UTC | |
by Hutta (Scribe) on Oct 24, 2001 at 11:01 UTC |