toohoo has asked for the wisdom of the Perl Monks concerning the following question:
Dear wise Monks,
I am trying to program a little call routine for scp. I've found Net::SCP::Expect . It seems Net::SCP is not mighty enough to handle my needs. First question, does someone have another package which might be more easy or better?
As we all know, we can send a SCP through a system call like
scp -2 -q -C -i identity_file -P port -oBatchMode=yes -oStrictHostKeyChecking=no $localfilename $login\@$server:$remotefilename
The request to me now is to give a routine with parameters which does the call "in perl".
I think I have understood some things right:
Two other things I am asking myself how to do. I have given the options:
How can I give them to the new method?
Thanks in advance and best regards, Thomas
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using scp package and options
by salva (Canon) on Feb 03, 2015 at 16:37 UTC | |
by toohoo (Beadle) on Feb 11, 2015 at 16:37 UTC | |
by salva (Canon) on Feb 12, 2015 at 08:34 UTC |