Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Special characters in filename

get "HTA 6201-210-44 Prozessschritt-Beschreibung [[]04].docm" D:\test\


Please read documentation. If that does not help, come back.
Guest

Special characters in filename

Hi all,

I have a problem:

I'm downloading some files from an UNIX server via script, but if there is the character "[" or "]" in a filename, it doesn't work... Here's a part of the log file:

. 2009-11-30 13:24:47.659 Using SFTP protocol.

. 2009-11-30 13:24:47.720 Doing startup conversation with host.
> 2009-11-30 13:24:47.720 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2009-11-30 13:24:47.720 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2009-11-30 13:24:47.720 SFTP version 3 negotiated.
. 2009-11-30 13:24:47.720 We believe the server has signed timestamps bug
. 2009-11-30 13:24:47.720 We will use UTF-8 strings for status messages only
. 2009-11-30 13:24:47.720 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
. 2009-11-30 13:24:47.720 Getting current directory name.
. 2009-11-30 13:24:47.720 Getting real path for '.'
> 2009-11-30 13:24:47.720 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2009-11-30 13:24:47.730 Type: SSH_FXP_NAME, Size: 55, Number: 16
. 2009-11-30 13:24:47.730 Real path is '/sapcs/mp1cs_home'
. 2009-11-30 13:24:47.730 Startup conversation with host finished.
. 2009-11-30 13:24:47.730 Cached directory change via "/sapcs/mp1cs_home/datafiles/A5N/ZDMS_A5N_MP1/090e/cf54d84aba54f335e10000009ee2877c" to "/sapcs/mp1cs_home/datafiles/A5N/ZDMS_A5N_MP1/090e/cf54d84aba54f335e10000009ee2877c".
. 2009-11-30 13:24:47.730 Getting current directory name.
. 2009-11-30 13:24:47.740 Listing directory "/sapcs/mp1cs_home/datafiles/A5N/ZDMS_A5N_MP1/090e/cf54d84aba54f335e10000009ee2877c".
> 2009-11-30 13:24:47.740 Type: SSH_FXP_OPENDIR, Size: 91, Number: 267
< 2009-11-30 13:24:47.740 Type: SSH_FXP_HANDLE, Size: 13, Number: 267
> 2009-11-30 13:24:47.740 Type: SSH_FXP_READDIR, Size: 13, Number: 524
< 2009-11-30 13:24:47.750 Type: SSH_FXP_NAME, Size: 579, Number: 524
> 2009-11-30 13:24:47.750 Type: SSH_FXP_READDIR, Size: 13, Number: 780
< 2009-11-30 13:24:47.750 Type: SSH_FXP_STATUS, Size: 28, Number: 780
< 2009-11-30 13:24:47.750 Status/error code: 1
> 2009-11-30 13:24:47.750 Type: SSH_FXP_CLOSE, Size: 13, Number: 1028
. 2009-11-30 13:24:50.476 Closing connection.
. 2009-11-30 13:24:50.476 Sending special code: 12
. 2009-11-30 13:24:50.476 Sent EOF message


Here's the script:
option batch on

option confirm off
open xxx@xxx
cd /sapcs/mp1cs_home/datafiles/A5N/ZDMS_A5N_MP1/090e/cf54d84aba54f335e10000009ee2877c
option transfer binary
get "HTA 6201-210-44 Prozessschritt-Beschreibung [04].docm" D:\test\
close
exit


I have no idea what to do...

Thanks for your help,
Thomas