sebawllc has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use warnings; use Net::SSH::Perl; use Net::SFTP; my $host = "sftp.someone.com"; my $user = "user"; my $pass = "pass"; my $home = "/path/to/file.txt"; my $path = "/new/path/to/file"; my $sftp = Net::SFTP->new($host, "user" => $user, "password +> $pass, +debug =>1) || die "can't login $!\n"; $sftp->put($home,$path) || die "can't open: $!"; $sftp->quit # I'm guessing on that because there isn't a way listed in + the CPAN docs about how to close.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SFTP Help
by hossman (Prior) on Apr 09, 2003 at 01:25 UTC | |
by sebawllc (Initiate) on Apr 09, 2003 at 13:50 UTC | |
|
Re: Net::SFTP Help
by phydeauxarff (Priest) on Apr 08, 2003 at 18:49 UTC | |
by sebawllc (Initiate) on Apr 08, 2003 at 18:53 UTC | |
|
Re: Net::SFTP Help
by zentara (Cardinal) on Apr 09, 2003 at 15:39 UTC | |
|
Re: Net::SFTP Help
by mikedshelton (Beadle) on Dec 21, 2003 at 02:31 UTC |