Re: using Expect.pm

2008-07-10 Thread Richard Lee
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

using Expect.pm

2008-07-09 Thread Richard Lee
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

Re: Expect using expect.pm in perl

2006-02-08 Thread Owen Cook
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

Expect using expect.pm in perl

2006-02-08 Thread Leif Ericksen
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

Using Expect.pm to spawn Dtterm

2001-05-04 Thread Martin McNelis
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