Topic "FTP server codes and aborting a script"

Author Message


We use FTP/SFTP with a number of different servers but one on a regular basis causes a lot of issues. At times during the script, we get "550 Connection reset by peer: socket write error" but the script continues one and we then get " Connection reset by peer: socket write error" and then authentication type errors because the connection is closed.

I know I can pick these issues up at the end while parsing the log file but by then the script could have tried multiple file/foder operation on local and remote systems.

Basically, can we define some codes or codes and text that will abort a script?
What codes should abort a script?

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24755
Location: Prague, Czechia
What has your question to do with WinSCP?

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License