net::scp::expect error

  • Thread starter Chandrashekar Tippur
  • Start date

C

Chandrashekar Tippur

All,

I am having some trouble with the module net::scp::expect. I am able
to scp manually.

The error that I am getting is:

Error - last line returned was: pp
| 3B | 3B/s | TOC: 0 at
/tmp/.itverify-1038/perl/lib/perl5/site_perl/5.6.1/Expect.pm line 733


Here is the snippet of code:

$scpe = Net::SCP::Expect->new(host=>"$Host", user=>"$Login",
password=>"$Passwd", port=>"$sshport", protocol=>2, auto_yes=>1) ||
die "Incorrect Login or password\n";
$scpe->scp("$line",'$remotepwd') || die "Hello";

Please help.

Thanks,
Shekar
 
Ad

Advertisements

D

Daniel Berger

All,

I am having some trouble with the module net::scp::expect. I am able
to scp manually.

The error that I am getting is:

Error - last line returned was: pp
| 3B | 3B/s | TOC: 0 at
/tmp/.itverify-1038/perl/lib/perl5/site_perl/5.6.1/Expect.pm line 733


Here is the snippet of code:

$scpe = Net::SCP::Expect->new(host=>"$Host", user=>"$Login",
password=>"$Passwd", port=>"$sshport", protocol=>2, auto_yes=>1) ||
die "Incorrect Login or password\n";
$scpe->scp("$line",'$remotepwd') || die "Hello";

Please help.

Thanks,
Shekar

Hi Shekar,

I need some more info:

What platform?
Which version of ssh?

Also, try passing 'verbose => 1' and see if that gives you any more
detail. It looks like it's picking up some unexpected text at some
point. The verbose option should help me nail it down.

Regards,

Daniel Berger
 
C

Chandrashekar Tippur

Daniel,

SSH version is Secure Shell 3.2.5 and the OS is SunOS 2.8.

- Shekar
 
Ad

Advertisements

D

Daniel Berger

Daniel,

SSH version is Secure Shell 3.2.5 and the OS is SunOS 2.8.

- Shekar

Ah, I've received a couple of other reports about this. I only tested
against OpenSSH, not Sun's. I'm not sure what the problem is, except
that there's some text appearing at a moment when I don't expect it
(no pun intended).

Does using the "-verbose" option provide any more detail?

It may be a while before I resolve this. In the meantime, you may
want to take a look at Net::SFTP.

Regards,

Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top