alexpapa has asked for the wisdom of the Perl Monks concerning the following question:
the connection is made hereif (! ($ftp->put($location.$fileName)) ) { &Logs(":Error:","Could + not PUT file $fileName from $location to $ftpHost"); die &SendFailEmail("Error with transferring $fileName to $ftpHost",$no +tificationEmail); }
thanks!my $host = $ftpHost; my %args = ( user => $userName, password => $password, debug => 'true', ssh_args => [port => 22], ); if (! ($ftp = Net::SFTP->new($host, %args)) ) { &Logs(":Error:","Could not log +in to FTP $location $ftpHost"); die &SendFailEmail("Error with + connecting to $ftpHost",$notificationEmail); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: NET::SFTP - Permission Denied (preserve timestamps?)
by salva (Canon) on Nov 17, 2010 at 08:54 UTC |