Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Help in AUTOMATE SFTP setup

If there are not files to get and you use file mask, e.g. "get *", though should not get an error code.
Sunil Somani

Help in AUTOMATE SFTP setup

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.

Thanks
Sunil Somani