perlknight has asked for the wisdom of the Perl Monks concerning the following question:
I've tried my $bla = $ssh->send("ping 172.16.10.29\n") but it doesn't work. Any idea? thanks.$ssh->expect(10, [ qr 'wall#', sub { $ssh->send("ping 172.16.10.29\n"); # h +ow do I get the output of this ping into a variable? }], );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: storing return value from Expect
by belkajm (Beadle) on Aug 09, 2002 at 03:00 UTC | |
|
Re: storing return value from Expect
by thor (Priest) on Aug 09, 2002 at 11:44 UTC | |
by belkajm (Beadle) on Aug 09, 2002 at 18:20 UTC |