Transfer in GUI but not with Script
. 2017-12-28 21:27:07.778 Copying 2 files/directories to remote directory "/" - total size: 527,708
. 2017-12-28 21:27:07.778 PrTime: Yes; PrRO: No; Rght: rwxrwxrwx; PrR: Yes (Yes); FnCs: N; RIC: 0100; Resume: N (102400); CalcS: Yes; Mask: *.*
. 2017-12-28 21:27:07.778 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: *; ResumeL: 0
. 2017-12-28 21:27:07.778 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2017-12-28 21:27:07.809 File: 'Z:\VIP2\S99997572.SLS' [2017-12-28T15:59:54.000Z] [52876]
. 2017-12-28 21:27:07.809 Copying "Z:\VIP2\S99997572.SLS" to remote directory started.
. 2017-12-28 21:27:07.809 Binary transfer mode selected.
. 2017-12-28 21:27:07.809 Opening remote file.
> 2017-12-28 21:27:07.809 Type: SSH_FXP_OPEN, Size: 36, Number: 49923
< 2017-12-28 21:27:07.809 Type: SSH_FXP_STATUS, Size: 31, Number: 49420
. 2017-12-28 21:27:07.809 Discarding reserved response
< 2017-12-28 21:27:07.809 Type: SSH_FXP_STATUS, Size: 27, Number: 49668
. 2017-12-28 21:27:07.809 Discarding reserved response
< 2017-12-28 21:27:07.887 Type: SSH_FXP_HANDLE, Size: 17, Number: 49923
> 2017-12-28 21:27:07.934 Type: SSH_FXP_WRITE, Size: 32764, Number: 50438
. 2017-12-28 21:27:07.981 1 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> 2017-12-28 21:27:07.981 Type: SSH_FXP_CLOSE, Size: 17, Number: 50948
> 2017-12-28 21:27:07.981 Type: SSH_FXP_SETSTAT, Size: 40, Number: 50185
< 2017-12-28 21:27:08.184 Type: SSH_FXP_STATUS, Size: 27, Number: 50438
< 2017-12-28 21:27:08.184 Status code: 0
< 2017-12-28 21:27:08.496 Type: SSH_FXP_STATUS, Size: 27, Number: 50694
< 2017-12-28 21:27:08.496 Status code: 0
< 2017-12-28 21:27:08.496 Type: SSH_FXP_STATUS, Size: 27, Number: 50948
< 2017-12-28 21:27:08.496 Status code: 0
. 2017-12-28 21:27:08.496 Preserving timestamp [2017-12-28T15:59:54.000Z]
< 2017-12-28 21:27:08.496 Type: SSH_FXP_STATUS, Size: 27, Number: 50185
< 2017-12-28 21:27:08.496 Status code: 0
Below is the output when running through a script w/ Task Scheduler:
. 2017-12-28 21:19:35.887 Searching directory "/" (real path "/")
. 2017-12-28 21:19:35.887 Listing directory "/".
> 2017-12-28 21:19:35.887 Type: SSH_FXP_OPENDIR, Size: 10, Number: 47115
< 2017-12-28 21:19:35.887 Type: SSH_FXP_STATUS, Size: 31, Number: 46604
. 2017-12-28 21:19:35.887 Discarding reserved response
< 2017-12-28 21:19:35.887 Type: SSH_FXP_STATUS, Size: 27, Number: 46852
. 2017-12-28 21:19:35.887 Discarding reserved response
< 2017-12-28 21:19:35.965 Type: SSH_FXP_HANDLE, Size: 13, Number: 47115
> 2017-12-28 21:19:35.965 Type: SSH_FXP_READDIR, Size: 13, Number: 47372
< 2017-12-28 21:19:36.074 Type: SSH_FXP_NAME, Size: 30731, Number: 47372
> 2017-12-28 21:19:36.074 Type: SSH_FXP_READDIR, Size: 13, Number: 47628
< 2017-12-28 21:19:36.184 Type: SSH_FXP_NAME, Size: 30786, Number: 47628
> 2017-12-28 21:19:36.184 Type: SSH_FXP_READDIR, Size: 13, Number: 47884
< 2017-12-28 21:19:36.277 Type: SSH_FXP_NAME, Size: 29790, Number: 47884
> 2017-12-28 21:19:36.277 Type: SSH_FXP_READDIR, Size: 13, Number: 48140
> 2017-12-28 21:19:36.277 Type: SSH_FXP_CLOSE, Size: 13, Number: 48388
I have the below setup for the text file:
open sftp://username:password@ftpsite/ -hostkey="ssh-dss 1024 "key from WinSCP when you copy the script" -rawsettings Proxyport=0
lcd
cd
put -permissions=0777 -filemask="*" -resumesupport=off *
exit
This runs through Task Scheduler with the below arguement:
/ini=nul /script=FTPScript.txt
Thoughts?
Thanks.