in reply to Issues with Net::SCP::Expect

I have ran a -d:Trace and have found the following:

Problem performing scp: >> /amp/oracle/perl5/lib/perl5/Expect.pm:173: { exec(@cmd) }; >> /amp/oracle/perl5/lib/perl5/Expect.pm:173: { exec(@cmd) }; at test.pl line 39

Replies are listed 'Best First'.
Re^2: Issues with Net::SCP::Expect
by nikster (Novice) on Dec 03, 2019 at 20:35 UTC

    If you don't mind you probably should just use the build in /usr/bin/scp, it's better than every perl module I've tried and just works.

    I do this in every script where scp is needed.

      If you don't mind you probably should just use the build in /usr/bin/scp, it's better than every perl module I've tried and just works.

      Really, even better than Net::OpenSSH? Scripting an external binary is a tricky and brittle thing to do (see e.g. here), and not something I'd recommend if there's a module that already does the task well, otherwise one is just reinventing the wheel.