in reply to Net::SCP::Expect problem

Hi,
Looks like you inverted the options on "$scpe->scp(..)". Try the following:
use strict; use warnings; use IO::Pty; use Net::SCP::Expect; my $scpe = Net::SCP::Expect->new; $scpe->host("servera"); $scpe->login("swaroop","xxxxx"); $scpe->auto_yes("1"); $scpe->scp('testfile','servera:/tmp/testfile');

If this doesn't work. Check if "testfile" exists. Or specify the full path of it (like /home/xx/testfile).
Also check if "servera" is being resolved correctly (or use its IP Address instead).

If none of this work, you should get an error message from this module explaining (enable debug)...

-DCB

Replies are listed 'Best First'.
Re^2: Net::SCP::Expect problem
by swaroop (Beadle) on May 06, 2005 at 18:56 UTC
    How to enable debug ?? its really buggin me re.

    - Swaroop
Re^2: Net::SCP::Expect problem
by Anonymous Monk on Jan 27, 2016 at 14:38 UTC
    I too have same problem. Got the error as "Problem performing scp: yes/no at gg.pl"