If this doesn't work, a perldoc Expect might be in order.$ssh->send("ping 172.16.10.29\r"); #notice \r here; I think it's prefe +rred over \n in expect my $stuff = $ssh->expect(10, qr 'wall#');
thor
In reply to Re: storing return value from Expect
by thor
in thread storing return value from Expect
by perlknight
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |