was able to make it work but not sure if I am doing the right thing.
use warnings;
use strict;
use Expect;
my $exp = new Expect;
my $password = 'abc123';
my $user = 'userX';
my $host = '10.3.3.1';
# typical regex pattern for end of /bin/sh prompt:
my $shell_prompt = qr/[\$\#]\s*$/;
my $lo
Hi guys,
I was trying to use Expect.pm but it was just too hard for me to capture
remote machine's output via below..
#!/usr/bin/perl
use warnings;
use strict;
use Expect;
my $exp = new Expect;
my $password = 'abc123';
my $user = 'userX';
my $host = '10.3.1.2';
my $login =
"/usr/bin/s
On Wed, 8 Feb 2006, Leif Ericksen wrote:
> I am working on a little project where I want to use expect in Perl, and
> I am having some luck already but wanted to know what is the recommended
> books to learn more about using expect in Perl. Will the Expect books
> by O'Reilly be of value for thi
I am working on a little project where I want to use expect in Perl, and
I am having some luck already but wanted to know what is the recommended
books to learn more about using expect in Perl. Will the Expect books
by O'Reilly be of value for this?
So far I am using the sample code from the modu
Hi,
This is a follow on from my question yesterday about spawing dtterm and
xterm processes for input. As I understand it, it's not possible to do this
with pipes as dtterm and xterm handle input differently to most processes.
I'm now trying to do the same thing using expect, but hgaving no succ