Topic "resumesupport switch not recognized as switch in sftp put command"

Author Message
Tom Ambros
[View user's profile]

Joined: 2015-09-09
Posts: 6
Release 5.5.1, I have users running 5.5.1 successfully using the switch but one user seems unable. I can not recreate the issue but I am running 5.5.6 myself.
>> Bat file:
REM cd C:\Program Files (x86)\WinSCP
ERASE "U:\FTPDOWN\0002-WinSCP_KCBNK_Cmd.log"
WinSCP.com "/script=U:\FTPDOWN\0002-WinSCP_KCBNK_Cmd.TXT" /ini=nul "/log=U:\FTPDOWN\0002-WinSCP_KCBNK_Cmd.log"

I'm guessing they already cd'ed because they do find the code.
Put command:

option batch abort
option confirm OFF
open sftp://userid:12345678@mf-ssh2plx00.ourdomain.com/ -hostkey=*

PUT "–resumesupport=off" "-nopreservetime" "H:\DataExtract\KCB_Extract\KCBNK_F.TXT" "/ftadv:B=0,SPACE_UNIT=CYLS,PRI=500,SEC=500,O=VB,R=500/__'EAS.T.CR0A9N99.CLNT.BUDX.KCBNK.FP(+1)'"

The ftadv business is Tectia for zOS - not at issue here, I do the same thing trying to recreate error.

Log segment:

> 2015-09-08 17:14:17.896 Script: PUT "–resumesupport=off" "-nopreservetime" "H:\DataExtract\KCB_Extract\KCBNK_F.TXT" "/ftadv:B=0,SPACE_UNIT=CYLS,PRI=500,SEC=500,O=VB,R=500/__'EAS.T.CR0A9N99.CLNT.BUDX.KCBNK.FP(+1)'"
. 2015-09-08 17:14:17.928 Copying 2 files/directories to remote directory "/ftadv:B=0,SPACE_UNIT=CYLS,PRI=500,SEC=500,O=VB,R=500/"
. 2015-09-08 17:14:17.943 PrTime: No; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask: __'EAS.T.CR0A9N99.CLNT.BUDX.KCBNK.FP(+1)'
. 2015-09-08 17:14:17.943 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM:
. 2015-09-08 17:14:17.943 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
* 2015-09-08 17:14:17.974 (EOSError) System Error. Code: 2.

* 2015-09-08 17:14:17.974 The system cannot find the file specified
. 2015-09-08 17:14:17.974 Asking user:
. 2015-09-08 17:14:17.974 File or folder '–resumesupport=off' does not exist. ("System Error. Code: 2.

Full log/script attached. What is the issue with this? It looks like it ought to work. We're not seeing what we're doing wrong. Thanks
0002-WinSCP_KCBNK_Cmd.TXT (679 Bytes) [Download]

Description: (none)

Advertisements
Tom Ambros
[View user's profile]

Joined: 2015-09-09
Posts: 6
Adding log
0002-WinSCP_KCBNK_Cmd .log (9.97 KB) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25018
Location: Prague, Czechia
Tom Ambros wrote:
. 2015-09-08 17:14:17.974 File or folder '–resumesupport=off' does not exist. ("System Error. Code: 2.

There's "en dash" (–) character before the resumesupport, not a regular dash (-).
http://www.fileformat.info/info/unicode/char/2013/index.htm
Tom Ambros
[View user's profile]

Joined: 2015-09-09
Posts: 6
Thanks. That's what I get for cutting and pasting from text files, IMs or Outlook mail items. When I gave the user the parm I didn't actually type it in. At least you got me to find a good hex editor for Windows. Thank you again... I knew it was some silly mistake here.
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