Hi Salva
Thanks for that I asked a client for a copy of the script to see if they had amended it and found they had changed the following line after you pointed out the 10 seconds timeout also its using a password not a public key! I'm hoping that will solve the issue
# attempt connecton to SFTP site
#$sftp = Net::SFTP::Foreign->new( $username . '@' . $sftpServer, timeout => 60, password => $password);
$sftp = Net::SFTP::Foreign->new( $username . '@' . $sftpServer, timeout => 10, more =>