I am using a proper hostname, and have even tried several different hosts. I
just left it out of the example I sent to the list. I verified all the
login, hostname, filename, password, etc by scp the file manually. I have
even loaded the modules on another machine and I still get the same error.
----- Original Message -----
From: "R. Joseph Newton" <[EMAIL PROTECTED]>
To: "Jose Malacara" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, October 01, 2003 7:49 AM
Subject: Re: Fw: Net::SCP::Expect
> Jose Malacara wrote:
>
> > Sorry if this comes across twice. It bounced back the first time...
> >
> > Would someone mind telling me what I am doing wrong here please. I am
trying to tie the SCP Expect module into a backup script I put together, but
it keeps failing. I stripped out all but the SCP example code and it still
generates an error from the module. I verified my login, directory and
filenames were correct by sending the file manually.
> >
> > I am running Perl v5.8.0, Expect-1.14, and Net-SCP-Expect-0.10
> >
> > use Net::SCP::Expect;
> > my $host = "host.whatever";
> > ...
> > #The error
> > josem $./script3.pl
> > at /usr/lib/perl5/site_perl/5.8.0/Expect.pm line 730ease try again.
> >
> > #Line 730 from Expect.pm
> > 725 if ($#{$pattern} > 3) {
> > 726 # call with parameters if given
> > 727 $exp_cont = &{$pattern->[3]}($exp,
> > 728
@{$pattern}[4..$#{$pattern}]);
> > 729 } else {
> > 730 $exp_cont = &{$pattern->[3]}($exp);
> > 731 }
>
> My guess is thatthis is a malformed host name. It should be in the form.
>
> hostname.ext
>
> where ext is the top-level domain, such as .com, .net, .org, .etc.
>
> Joseph
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]