Net::SCP::ExpectNet::SCP::Expect is a wrapper for scp that allows passwords via Expect. | |
Download |
Net::SCP::Expect Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Daniel Berger
- Publisher web site:
- http://search.cpan.org/~djberg/Net-SCP-Expect-0.12/Expect.pm
Net::SCP::Expect Tags
Net::SCP::Expect Description
Net::SCP::Expect is a wrapper for scp that allows passwords via Expect. Net::SCP::Expect is a wrapper for scp that allows passwords via Expect.SYNOPSISExample 1 - uses login method, longhand scp:my $scpe = Net::SCP::Expect->new;$scpe->login('user name', 'password');$scpe->scp('file','host:/some/dir');Example 2 - uses constructor, shorthand scp:my $scpe = Net::SCP::Expect->new(host=>'host', user=>'user', password=>'xxxx');$scpe->scp('file','/some/dir'); # 'file' copied to 'host' at '/some/dir'Example 3 - Copying from remote machine to local hostmy $scpe = Net::SCP::Expect->new(user=>'user',password=>'xxxx');$scpe->scp('host:/some/dir/filename','newfilename');See the scp() method for more information on valid syntax.This module is simply a wrapper around the scp call. The primary difference between this module and Net::SCP is that you may send a password programmatically, instead of being forced to deal with interactive sessions. Requirements: · Expect 1.14 · Term::ReadPassword · Perl
Net::SCP::Expect Related Software