Topic "How do I programatically set the "Server Response Timeout""

Author Message
jirlbeck
[View user's profile]

Joined: 2014-03-25
Posts: 9
Location: Chicago
I have a bash script that calls a number of pig scripts. I execute the script but because I have only 3 mapreduce nodes the session times out. I can manually set the option at login and the job runs fine. I need to set this value in my VB script in Excel so that it stops timing out. Is this possible and what would the syntax look like?

Thanks for the help!
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
SessionOptions.Timeout:
http://winscp.net/eng/docs/library_sessionoptions
_________________
Martin Prikryl
jirlbeck
[View user's profile]

Joined: 2014-03-25
Posts: 9
Location: Chicago
Here is the code showing the session options. I have the TimeSpan option but it is not correct. I'm not clear how to use sessionoptions.timeout and provide a value for the new timeout option. I have tried using ".Timeout = 100" but that doesn't work either. Can you elaborate?

Dim mySessionOptions As New sessionOptions

With mySessionOptions
.Protocol = Protocol_Sftp
.PortNumber = 22
.Timeout = 100
.HostName = "10.101.200.200"
.UserName = "usr"
.Password = "Haduup"
.SshHostKeyFingerprint = "ssh-rsa 2048 17:xx:xx:xx:xx:xx:xx:5e:9d:6d:89:5d:e4:4e:cc:58"
End With
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
OK, I understand the problem now. Interesting.
I've posted question on stackoverflow on your behalf:
http://stackoverflow.com/questions/23078375/creating-timespan-instance-via-com
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
This issue has been added to the tracker:
http://winscp.net/tracker/show_bug.cgi?id=1156

I have sent you an email with a development version of WinSCP for testing to address you have used to register on this forum.
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License