"Get" works - but only for small files

Advertisement

memnon
Joined:
Posts:
4

"Get" works - but only for small files

Hello,

i use Autoit with Winscp - i use autoit´s run command to use winscp.exe /command to get or put files on our ftp server

i havent any troubles with put at all - does what it should

with get - i get small textfiles - but if i want to get a 8mb exe file i do not get it
it looks the same in the log file of the ftp server but retrieving the file i get disconnect

any clou what i am doing wrong ?


(btw if i use winscp.exe gui it works well)

Reply with quote

Advertisement

memnon
Joined:
Posts:
4

and thats the logfile

. 2017-08-02 16:37:34.868 --------------------------------------------------------------------------
. 2017-08-02 16:37:34.868 WinSCP Version 4.2.5 (Build 624) (OS 6.2.9200)
. 2017-08-02 16:37:34.868 Login time: Mittwoch, 2. August 2017 16:37:34
. 2017-08-02 16:37:34.868 --------------------------------------------------------------------------
. 2017-08-02 16:37:34.868 Session name: get@WanIP
. 2017-08-02 16:37:34.868 Host name: WanIP (Port: 999)
. 2017-08-02 16:37:34.868 User name: get (Password: Yes, Key file: No)
. 2017-08-02 16:37:34.868 Tunnel: No
. 2017-08-02 16:37:34.868 Transfer Protocol: FTP
. 2017-08-02 16:37:34.868 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2017-08-02 16:37:34.868 Proxy: none
. 2017-08-02 16:37:34.868 FTP: FTPS: Implicit SSL/TLS; Passive: Yes [Force IP: No]
. 2017-08-02 16:37:34.869 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2017-08-02 16:37:34.869 Cache directory changes: Yes, Permanent: Yes
. 2017-08-02 16:37:34.869 DST mode: 1
. 2017-08-02 16:37:34.869 --------------------------------------------------------------------------
. 2017-08-02 16:37:35.046 Connecting to WanIP:999 ...
. 2017-08-02 16:37:35.073 Connected with WanIP:999, negotiating SSL connection...
. 2017-08-02 16:37:35.145 SSL connection established. Waiting for welcome message...
< 2017-08-02 16:37:35.145 220-FileZilla Server version 0.9.34 beta
< 2017-08-02 16:37:35.145 220 Willkommen am FTP Server
> 2017-08-02 16:37:35.145 USER get
< 2017-08-02 16:37:35.173 331 Password required for get
> 2017-08-02 16:37:35.173 PASS ********
< 2017-08-02 16:37:35.204 230 Logged on
> 2017-08-02 16:37:35.204 SYST
< 2017-08-02 16:37:35.235 215 UNIX emulated by FileZilla
> 2017-08-02 16:37:35.235 FEAT
< 2017-08-02 16:37:35.267 211-Features:
< 2017-08-02 16:37:35.267 MDTM
< 2017-08-02 16:37:35.267 REST STREAM
< 2017-08-02 16:37:35.268 SIZE
< 2017-08-02 16:37:35.268 MODE Z
< 2017-08-02 16:37:35.268 MLST type*;size*;modify*;
< 2017-08-02 16:37:35.268 MLSD
< 2017-08-02 16:37:35.268 AUTH SSL
< 2017-08-02 16:37:35.268 AUTH TLS
< 2017-08-02 16:37:35.268 UTF8
< 2017-08-02 16:37:35.268 CLNT
< 2017-08-02 16:37:35.268 MFMT
< 2017-08-02 16:37:35.268 211 End
> 2017-08-02 16:37:35.268 PBSZ 0
< 2017-08-02 16:37:35.298 200 PBSZ=0
> 2017-08-02 16:37:35.298 PROT P
< 2017-08-02 16:37:35.326 200 Protection level set to P
. 2017-08-02 16:37:35.326 Connected
. 2017-08-02 16:37:35.326 --------------------------------------------------------------------------
. 2017-08-02 16:37:35.326 Using FTP protocol.
. 2017-08-02 16:37:35.327 Doing startup conversation with host.
> 2017-08-02 16:37:35.327 PWD
< 2017-08-02 16:37:35.354 257 "/" is current directory.
. 2017-08-02 16:37:35.354 Getting current directory name.
. 2017-08-02 16:37:35.354 Startup conversation with host finished.
. 2017-08-02 16:37:35.354 Listing file "/Prod/Autoit/SG/Sg.exe".
. 2017-08-02 16:37:35.354 Retrieving directory listing...
> 2017-08-02 16:37:35.354 CWD /Prod/Autoit/SG/
< 2017-08-02 16:37:35.384 250 CWD successful. "/Prod/Autoit/SG" is current directory.
> 2017-08-02 16:37:35.384 PWD
< 2017-08-02 16:37:35.417 257 "/Prod/Autoit/SG" is current directory.
> 2017-08-02 16:37:35.417 TYPE A
< 2017-08-02 16:37:35.448 200 Type set to A
> 2017-08-02 16:37:35.448 PASV
< 2017-08-02 16:37:35.477 227 Entering Passive Mode (WanIP,198,232)
> 2017-08-02 16:37:35.477 LIST -a
< 2017-08-02 16:37:35.523 150 Connection accepted
. 2017-08-02 16:37:35.568 SSL connection established
< 2017-08-02 16:37:35.570 226 Transfer OK
. 2017-08-02 16:37:35.570 Directory listing successful
. 2017-08-02 16:37:35.572 Disconnected from server

Reply with quote

memnon
Joined:
Posts:
4

$get1="""get /Prod/Autoit/SG/Sg_version.txt d:\tmp\"""
$cmd5 = 'c:\tmp\winscp425.exe /command "option batch on" "option confirm off" "open ftp://get:pw@WanIP:Port -hostkey=""ssh-dss 1024 numbers"" -implicit -passive""" ' &$get1& ' "exit"'
run($cmd5,"c:\tmp")
works - i get the Sg_version.txt

$get2="""get /Prod/Autoit/SG//Sg.exe d:\tmp\"""
$cmd8 = 'c:\tmp\winscp425.exe /command "option batch on" "option confirm off" "open ftp://get:WanIP:Port -hostkey=""ssh-dss 1024 numbers"" -implicit -passive""" ' &$get2& ' "exit"'
run($cmd8,"c:\tmp")
doesnt work and generates the log i postet, the sg.exe is 8mb - is that a kind of a bug ? do i code something wrong ?

Reply with quote

memnon

well i found it out myself - the winscp425 was the problem, with the never versions it works...

problem is i wanted to use 425 because its only 1.6mb vs 14mb with the newest version

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,453
Location:
Prague, Czechia

memnon wrote:

problem is i wanted to use 425 because its only 1.6mb vs 14mb with the newest version
4.2.5 portable executable is compressed with upx, that's why it's so much smaller.

Reply with quote

Advertisement

You can post new topics in this forum