blue_cowdawg has asked for the wisdom of the Perl Monks concerning the following question:
OK.. so I'm using Net::SCP::Expect to automate some of my work. Check this bit of code:
my $scpe= new Net::SCP::Expect ( host => 'myhost', user => 'myaccount', password => 'secret', recursive => 1, preserve => 1, compress => 1, no_check => 1, timeout => 60, ); $scpe -> scp ("/home/path/whatever", "myaccount@myhost:/tmp/" );
I've put as much of the code as I dare but that is the essence and I bomb out with
scp timed out while trying to connect to myhost at script line 122
I add a single line in the "new" call:
and the darn thing works. I hate to think I have to deal with the ugly output verbose mode gives, but it does make the script work.verbose => 1
Thoughts anybody?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SCP::Expect wierdness
by salva (Canon) on Aug 29, 2012 at 20:56 UTC | |
by blue_cowdawg (Monsignor) on Aug 30, 2012 at 15:01 UTC | |
by salva (Canon) on Aug 31, 2012 at 07:19 UTC |