Skip Menu |

This queue is for tickets about the Net-SFTP CPAN distribution.

Report information
The Basics
Id: 14510
Status: resolved
Priority: 0/
Queue: Net-SFTP

People
Owner: Nobody in particular
Requestors: thomas-c.schmitt [...] db.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.08
Fixed in: (no value)



Subject: no close command for sftp
if ( $sftph = Net::SFTP->new($import->{HostName}, %params) ) { PrintMessage ("Opened connection to $import->{HostName}"); # get all files if there are any GetRemoteFiles($dbh, $sftph, $remotehome, $import, $import->{RemoteDir} ); #!!!How to close ? close($sftph; PrintMessage ("Closed connection to $import->{HostName}"); If I don't close the connection every Net::SFTP->new will fork a new sftp-process Remotely.