Server Time Out

Advertisement

Ramesh S Kaimal
Guest

Server Time Out

Hi,
I am using SFTP to get a file from a server in my program.
For this i am using Winscp Scripting.
But when i run this script using a batch i am getting a feed back as "Host has not answered for 15 seconds".
How could i make the winscp to wait for more time say 2 minutes before its timed out.

Please advise.

Thanks in advance....

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Server Time Out

The timeout can be set longer on login dialog. Then create a stored session with the option set and open the session from script.

Reply with quote

Guest

Re: Server Time Out

martin wrote:

The timeout can be set longer on login dialog. Then create a stored session with the option set and open the session from script.

Is there any way that i can set this time out from the script. We need this badly because we cannot create session in all clients.

Reply with quote

Guest

Re: Server Time Out

This is the script that i am using

option batch on
option confirm off
open sftp://user:pass@172.19.152.89:22
lcd C:\DOCS\
cd /home10/excer/Docs
option transfer ascii
get abcedsd.htm
close
exit

Is there any way to set the timeout from this script.

please advise

Reply with quote

Advertisement

You can post new topics in this forum