Topic "Can't change timeout via script"

Author Message
Guest




This is probably just a boneheaded issue, but I'm having a terrible time changing the timeout.

I'm using winSCP ver 4.2.7(build 758) on WinXP 5.1.2600 SP3.

I'm calling the exe from a perl script using
system("$path./WinSCP.exe /timeout=20 /console /script=upload.txt /log=C:\\log.txt / hostkey=XXXXX")

The log file looks like this:

. 2010-05-11 14:24:58.078 WinSCP Version 4.2.7 (Build 758) (OS 5.1.2600 Service Pack 3)
. 2010-05-11 14:24:58.078 Login time: Tuesday, May 11, 2010 2:24:58 PM
. 2010-05-11 14:24:58.078 --------------------------------------------------------------------------
. 2010-05-11 14:24:58.078 Session name: realusername:password@www.ohiopmp.gov
. 2010-05-11 14:24:58.078 Host name: www.pmp.gov (Port: 22)
. 2010-05-11 14:24:58.078 User name: realusername (Password: Yes, Key file: No)
. 2010-05-11 14:24:58.078 Tunnel: No
. 2010-05-11 14:24:58.078 Transfer Protocol: SFTP (SCP)
. 2010-05-11 14:24:58.078 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2010-05-11 14:24:58.078 Proxy: none
. 2010-05-11 14:24:58.078 SSH protocol version: 2; Compression: No
. 2010-05-11 14:24:58.078 Bypass authentication: No
. 2010-05-11 14:24:58.078 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2010-05-11 14:24:58.078 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2010-05-11 14:24:58.078 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2010-05-11 14:24:58.078 SFTP Bugs: -,-
. 2010-05-11 14:24:58.078 Return code variable: Autodetect; Lookup user groups: Yes
. 2010-05-11 14:24:58.078 Shell: default, EOL: 0
. 2010-05-11 14:24:58.078 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2010-05-11 14:24:58.078 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2010-05-11 14:24:58.078 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2010-05-11 14:24:58.078 Cache directory changes: Yes, Permanent: Yes
. 2010-05-11 14:24:58.078 DST mode: 1
. 2010-05-11 14:24:58.078 --------------------------------------------------------------------------
. 2010-05-11 14:24:58.078 Looking up host "www.pmp.gov"
. 2010-05-11 14:24:58.110 Connecting to 70.62.13.92 port 22
. 2010-05-11 14:24:59.313 Server version: SSH-2.0-OpenSSH_5.3
. 2010-05-11 14:24:59.313 Using SSH protocol version 2
. 2010-05-11 14:24:59.313 We claim version: SSH-2.0-WinSCP_release_4.2.7
. 2010-05-11 14:24:59.438 Doing Diffie-Hellman group exchange
. 2010-05-11 14:24:59.735 Doing Diffie-Hellman key exchange with hash SHA-1
. 2010-05-11 14:25:00.000 Host key fingerprint is:
. 2010-05-11 14:25:00.000 ssh-rsa 2048 7a:51:a4:4f:ce:af:1e:a2:d8:1e:07:20:4d:67:30:37
. 2010-05-11 14:25:00.000 Initialised AES-256 SDCTR client->server encryption
. 2010-05-11 14:25:00.000 Initialised HMAC-SHA1 client->server MAC algorithm
. 2010-05-11 14:25:00.000 Initialised AES-256 SDCTR server->client encryption
. 2010-05-11 14:25:00.000 Initialised HMAC-SHA1 server->client MAC algorithm
! 2010-05-11 14:25:00.266 Using username "realusername".
. 2010-05-11 14:25:15.265 Waiting for data timed out, asking user what to do.
. 2010-05-11 14:25:15.265 Asking user:
. 2010-05-11 14:25:15.265 Host is not communicating for 15 seconds.
. 2010-05-11 14:25:15.265
. 2010-05-11 14:25:15.265 Wait for another 15 seconds? ()
. 2010-05-11 14:25:15.265 Attempt to close connection due to fatal exception:
* 2010-05-11 14:25:15.265 Terminated by user.
. 2010-05-11 14:25:15.265 Closing connection.
. 2010-05-11 14:25:15.265 Sending special code: 12


My script to upload a file looks like:

option batch
option confirm on
open realuser:realpassword@www.pmp.gov:22 /timeout=20
put C:\ptc9000/cs_pmp/BR54920100507.TXT
exit
Guest




Nevermind.




Anonymous wrote:
This is probably just a boneheaded issue, but I'm having a terrible time changing the timeout.

I'm using winSCP ver 4.2.7(build 758) on WinXP 5.1.2600 SP3.

I'm calling the exe from a perl script using
system("$path./WinSCP.exe /timeout=20 /console /script=upload.txt /log=C:\\log.txt / hostkey=XXXXX")

The log file looks like this:

. 2010-05-11 14:24:58.078 WinSCP Version 4.2.7 (Build 758) (OS 5.1.2600 Service Pack 3)
. 2010-05-11 14:24:58.078 Login time: Tuesday, May 11, 2010 2:24:58 PM
. 2010-05-11 14:24:58.078 --------------------------------------------------------------------------
. 2010-05-11 14:24:58.078 Session name: realusername:password@www.ohiopmp.gov
. 2010-05-11 14:24:58.078 Host name: www.pmp.gov (Port: 22)
. 2010-05-11 14:24:58.078 User name: realusername (Password: Yes, Key file: No)
. 2010-05-11 14:24:58.078 Tunnel: No
. 2010-05-11 14:24:58.078 Transfer Protocol: SFTP (SCP)
. 2010-05-11 14:24:58.078 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2010-05-11 14:24:58.078 Proxy: none
. 2010-05-11 14:24:58.078 SSH protocol version: 2; Compression: No
. 2010-05-11 14:24:58.078 Bypass authentication: No
. 2010-05-11 14:24:58.078 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2010-05-11 14:24:58.078 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2010-05-11 14:24:58.078 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2010-05-11 14:24:58.078 SFTP Bugs: -,-
. 2010-05-11 14:24:58.078 Return code variable: Autodetect; Lookup user groups: Yes
. 2010-05-11 14:24:58.078 Shell: default, EOL: 0
. 2010-05-11 14:24:58.078 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2010-05-11 14:24:58.078 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2010-05-11 14:24:58.078 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2010-05-11 14:24:58.078 Cache directory changes: Yes, Permanent: Yes
. 2010-05-11 14:24:58.078 DST mode: 1
. 2010-05-11 14:24:58.078 --------------------------------------------------------------------------
. 2010-05-11 14:24:58.078 Looking up host "www.pmp.gov"
. 2010-05-11 14:24:58.110 Connecting to 70.62.13.92 port 22
. 2010-05-11 14:24:59.313 Server version: SSH-2.0-OpenSSH_5.3
. 2010-05-11 14:24:59.313 Using SSH protocol version 2
. 2010-05-11 14:24:59.313 We claim version: SSH-2.0-WinSCP_release_4.2.7
. 2010-05-11 14:24:59.438 Doing Diffie-Hellman group exchange
. 2010-05-11 14:24:59.735 Doing Diffie-Hellman key exchange with hash SHA-1
. 2010-05-11 14:25:00.000 Host key fingerprint is:
. 2010-05-11 14:25:00.000 ssh-rsa 2048 7a:51:a4:4f:ce:af:1e:a2:d8:1e:07:20:4d:67:30:37
. 2010-05-11 14:25:00.000 Initialised AES-256 SDCTR client->server encryption
. 2010-05-11 14:25:00.000 Initialised HMAC-SHA1 client->server MAC algorithm
. 2010-05-11 14:25:00.000 Initialised AES-256 SDCTR server->client encryption
. 2010-05-11 14:25:00.000 Initialised HMAC-SHA1 server->client MAC algorithm
! 2010-05-11 14:25:00.266 Using username "realusername".
. 2010-05-11 14:25:15.265 Waiting for data timed out, asking user what to do.
. 2010-05-11 14:25:15.265 Asking user:
. 2010-05-11 14:25:15.265 Host is not communicating for 15 seconds.
. 2010-05-11 14:25:15.265
. 2010-05-11 14:25:15.265 Wait for another 15 seconds? ()
. 2010-05-11 14:25:15.265 Attempt to close connection due to fatal exception:
* 2010-05-11 14:25:15.265 Terminated by user.
. 2010-05-11 14:25:15.265 Closing connection.
. 2010-05-11 14:25:15.265 Sending special code: 12


My script to upload a file looks like:

option batch
option confirm on
open realuser:realpassword@www.pmp.gov:22 /timeout=20
put C:\ptc9000/cs_pmp/BR54920100507.TXT
exit
Guest




use -timeout=30 as parameter to the open command
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