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: Time out after uploading > 40 files

OK. So I believe the article I linked above explain your problem.

You better use .NET assembly rather than running WinSCP process on your own.
zeny

Re: Time out after uploading > 40 files

martin wrote:

How do you execute your script?

Did you read this?
https://winscp.net/eng/docs/message_timeout_external_console


I create a windows .net service to execute the WINSCP program with option.
The command are all in a script file.
The option are point to this script file and a XML temp log file.
All information are later written to window event log.
zeny

Time out after uploading > 40 files

I use vb.net program to execute winscp with options.
As long as the numbers of files are less than 40 there is no issue.
But once it is over 40, the timeout always happen.

i make the script such that it can set the timeout base on the total files size.
This is the command which i use.

option batch abort
option confirm off
open sftp://xxx@160.1.1.1 -timeout=100 -passive=on -hostkey="ssh-xxxxxxxxxxxxxxxxxx" -privatekey="D:\xxx_pri.ppk"


This are the log, only the starting and ending part.

batch abort
reconnecttime 120
confirm off
Searching for host...
Connecting to host...
Authenticating...
Using username "xxx".
Authenticating with public key "dsa-key-111111".
Authenticated.
Starting the session...
Session started.
Active session: [1] xxx@160.1.1.1
.
.
.
.
D:\X55271 | 0 B | 0.0 KB/s | binary | 0%
D:\X55271 | 0 B | 0.0 KB/s | binary | 0%Timeout waiting for external console to complete the command.
Timeout waiting for external console to complete the command.