Topic "Help in AUTOMATE SFTP setup"

Author Message
Sunil Somani


Dear All,

I am in process to create a AUTOMATED setup of SFTP.

In which at regular interval, my script will connect to SFTP server and get and put files. And in case of error would send a mail to the respective group.

Now issue is, how to track all error codes, for which I need to send mails.
Since let say there is no files to get, it will return error and I get a mail which is not useful.

If I could get all error code returned by WINSCP and how to pass the same error in my calling script. SO that I could manage the email sending part based on this.

Perhaps I am not clear, so If you have any question, please let me know and kindly help.

Sunil Somani
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26858
Location: Prague, Czechia
If there are not files to get and you use file mask, e.g. "get *", though should not get an error code.
Martin Prikryl

You can post new topics in this forum


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