

I have not had the possibility to run the script where there actually is files in the directory, since this is run on a production system and files are being downloaded from a server and uploaded to another server and then scripts at that server puts the files in a database (we dont have control of this DB) so then i cant just create test files on the server. in this situation there was no files in the directory on the server it downloads the files from so i guess its why it just hangs when it tries to upload files. When i try to run the script when there is no files at the host its downloading from the script starts hanging a little when its connecting to the host its suppose to transfer files to and the script quits with a 'Connection closed at '. It checks this with a simple if-loop, it uses the fx2txt function in Net::SFTP to write the action error message which writes out 'End of file'. After the upload is done the script writes out if the upload was complete or not.
