Copy fails with accented characters

Advertisement

Medalha
Guest

Copy fails with accented characters

I am using WinSCP 4.3.6 to help me administer a CentOS Linux server from a remote Windows machine.

When I try to copy directories or files containing accented characters, the copy fails. The following are resulting messages from WinSCP:
Command 'cd "/data/Jornal/Arquivo/Edições DA/Ano 2012"'
failed with return code 1 and error message
/bin/bash: line 6: cd: /data/Jornal/Arquivo/Edições DA/Ano 2012: No such file or directory.

Command 'cp -p -r -f "1553" "/data/Jornal/1553"'
failed with return code 1 and error message
cp: cannot stat `1553': No such file or directory.
However, when I move the same directories the operation is successful.
I always had this problem with WinSCP and I am using it since version 4.25 at least.
I don't have this problem when using Putty.
WinSCP is configured to use UTF-8.

Any information about this problem (or a correction if a bug exists) would be very welcome.

Thank you for this very nice piece of software.

Reply with quote

Advertisement

Guest

Re: Copy fails with accented characters

I just noticed that when the SCP protocol is used instead of SFTP, the option "UTF-8 encoding for filenames", under "Environment", is greyed out. When connected, the accented characters in filenames are mangled. Doesn't SCP support UTF-8? Is this related to the problem with the internal editor?

Reply with quote

Guest

Re: Copy fails with accented characters

OK, the documentation says that UTF-8 is NOT supported under SCP. Are the copy operations always done with SCP even when the selected protocol for the connection is SFTP? Should this be so or was it an oversight? This is a serious handicap. My servers do have a lot of directory and file names containing accented characters and this prevents bulk copy operations. I have to do them on the command line with Putty. By the way, why doesn't this happen with Putty?

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: Copy fails with accented characters

No. But you may end up using SCP instead of SFTP, if SFTP is not available and fall back is enabled. Post a log file if unsure.

And no, it is not related to the internal editor.

Reply with quote

Guest

Re: Copy fails with accented characters

Thank you for your answer.
I explicitly disabled SCP fallback. Here's the relevant part of the log file:
. 2012-02-10 01:58:45.380 [Shell] Changing directory to "/data/Jornal/Arquivo/Edições DA/Ano 2012".
> 2012-02-10 01:58:45.380 [Shell] cd "/data/Jornal/Arquivo/Edições DA/Ano 2012" ; echo "WinSCP: this is end-of-file:$?"
! 2012-02-10 01:58:45.470 [Shell] /bin/bash: line 4: cd: /data/Jornal/Arquivo/Edições DA/Ano 2012: No such file or directory
< 2012-02-10 01:58:45.681 [Shell] WinSCP: this is end-of-file:1
* 2012-02-10 01:58:45.681 [Shell] (ECommand) Error changing directory to '/data/Jornal/Arquivo/Edições DA/Ano 2012'.
* 2012-02-10 01:58:45.681 [Shell] Command 'cd "/data/Jornal/Arquivo/Edições DA/Ano 2012"'
* 2012-02-10 01:58:45.681 [Shell] failed with return code 1 and error message
* 2012-02-10 01:58:45.681 [Shell] /bin/bash: line 4: cd: /data/Jornal/Arquivo/Edições DA/Ano 2012: No such file or directory.
. 2012-02-10 01:58:47.563 [Shell] Getting current directory name.
> 2012-02-10 01:58:47.563 [Shell] pwd ; echo "WinSCP: this is end-of-file:$?"
< 2012-02-10 01:58:47.653 [Shell] /root
< 2012-02-10 01:58:47.784 [Shell] WinSCP: this is end-of-file:0
. 2012-02-10 01:58:47.784 [Shell] Startup conversation with host finished.
. 2012-02-10 01:58:47.944 Copying file "1554" to "/data/Backup/1554".
. 2012-02-10 01:58:47.944 Copying file on command session.
. 2012-02-10 01:58:47.944 [Shell] Changing directory to "/data/Jornal/Arquivo/Edições DA/Ano 2012".
> 2012-02-10 01:58:47.944 [Shell] cd "/data/Jornal/Arquivo/Edições DA/Ano 2012" ; echo "WinSCP: this is end-of-file:$?"
! 2012-02-10 01:58:48.034 [Shell] /bin/bash: line 6: cd: /data/Jornal/Arquivo/Edições DA/Ano 2012: No such file or directory
< 2012-02-10 01:58:48.184 [Shell] WinSCP: this is end-of-file:1
* 2012-02-10 01:58:48.184 [Shell] (ECommand) Error changing directory to '/data/Jornal/Arquivo/Edições DA/Ano 2012'.
* 2012-02-10 01:58:48.184 [Shell] Command 'cd "/data/Jornal/Arquivo/Edições DA/Ano 2012"'
* 2012-02-10 01:58:48.184 [Shell] failed with return code 1 and error message
* 2012-02-10 01:58:48.184 [Shell] /bin/bash: line 6: cd: /data/Jornal/Arquivo/Edições DA/Ano 2012: No such file or directory.
> 2012-02-10 01:58:49.015 [Shell] cp -p -r -f "1554" "/data/Backup/1554" ; echo "WinSCP: this is end-of-file:$?"
! 2012-02-10 01:58:49.286 [Shell] cp: cannot stat `1554': No such file or directory
< 2012-02-10 01:58:49.286 [Shell] WinSCP: this is end-of-file:1
. 2012-02-10 01:58:49.286 Asking user:
. 2012-02-10 01:58:49.296 Error copying file '1554' to '/data/Backup/1554'. ("Command 'cp -p -r -f ""1554"" ""/data/Backup/1554""'
. 2012-02-10 01:58:49.296 failed with return code 1 and error message
. 2012-02-10 01:58:49.296 cp: cannot stat `1554': No such file or directory.")
* 2012-02-10 01:58:51.048 (EAbort) Operation aborted
However, as I said before, a "move" operation of the same structure succeeds.

I suppose that there's a fix to be done here, don't you think?

Reply with quote

Guest

Re: Copy fails with accented characters

. 2012-02-13 13:37:03.045 --------------------------------------------------------------------------
. 2012-02-13 13:37:03.045 WinSCP Version 4.3.6 (Build 1655) (OS 5.1.2600 Service Pack 3)
. 2012-02-13 13:37:03.045 Configuration: C:\Program Files\WinSCP3\WinSCP.ini
. 2012-02-13 13:37:03.055 Local account: XXXXXXX\XXXXX
. 2012-02-13 13:37:03.055 Login time: segunda-feira, 13 de Fevereiro de 2012 13:37:03
. 2012-02-13 13:37:03.055 --------------------------------------------------------------------------
. 2012-02-13 13:37:03.055 Session name: XXXXXXXXXX/root@XX.XXX.XXX.XXX (Stored session)
. 2012-02-13 13:37:03.055 Host name: XX.XXX.XXX.XXX (Port: XXXXX)
. 2012-02-13 13:37:03.055 User name: root (Password: No, Key file: Yes)
. 2012-02-13 13:37:03.055 Tunnel: No
. 2012-02-13 13:37:03.055 Transfer Protocol: SFTP
. 2012-02-13 13:37:03.055 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2012-02-13 13:37:03.055 Proxy: none
. 2012-02-13 13:37:03.055 SSH protocol version: 2 only; Compression: Yes
. 2012-02-13 13:37:03.055 Bypass authentication: No
. 2012-02-13 13:37:03.055 Try agent: No; Agent forwarding: No; TIS/CryptoCard: No; KI: No; GSSAPI: No
. 2012-02-13 13:37:03.055 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2012-02-13 13:37:03.055 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2012-02-13 13:37:03.055 SFTP Bugs: -,-
. 2012-02-13 13:37:03.055 Return code variable: Autodetect; Lookup user groups: Yes
. 2012-02-13 13:37:03.055 Shell: /bin/bash
. 2012-02-13 13:37:03.055 EOL: 0, UTF: 1
. 2012-02-13 13:37:03.055 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2012-02-13 13:37:03.055 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2012-02-13 13:37:03.055 Local directory: default, Remote directory: /data/Jornal, Update: No, Cache: Yes
. 2012-02-13 13:37:03.055 Cache directory changes: Yes, Permanent: Yes
. 2012-02-13 13:37:03.055 DST mode: 2
. 2012-02-13 13:37:03.055 --------------------------------------------------------------------------
. 2012-02-13 13:37:03.176 Looking up host "XX.XXX.XXX.XXX"
. 2012-02-13 13:37:03.176 Connecting to XX.XXX.XXX.XXX port XXXXX
. 2012-02-13 13:37:03.206 We claim version: SSH-2.0-WinSCP_release_4.3.6
. 2012-02-13 13:37:03.246 Server version: SSH-2.0-OpenSSH_4.3
. 2012-02-13 13:37:03.246 Using SSH protocol version 2
. 2012-02-13 13:37:03.286 Server supports delayed compression; will try this later
. 2012-02-13 13:37:03.286 Doing Diffie-Hellman group exchange
. 2012-02-13 13:37:03.376 Doing Diffie-Hellman key exchange with hash SHA-1
. 2012-02-13 13:37:03.967 Host key fingerprint is:
. 2012-02-13 13:37:03.967 ssh-rsa 2048 14:cd:e0:b3:49:0b:42:5b:1c:d4:8e:c9:90:29:9a:76
. 2012-02-13 13:37:03.967 Initialised AES-256 SDCTR client->server encryption
. 2012-02-13 13:37:03.967 Initialised HMAC-SHA1 client->server MAC algorithm
. 2012-02-13 13:37:03.967 Initialised AES-256 SDCTR server->client encryption
. 2012-02-13 13:37:03.967 Initialised HMAC-SHA1 server->client MAC algorithm
. 2012-02-13 13:37:04.017 Reading private key file "D:\Documents\Labor\Keys\DA\rsa-key-20090510.ppk"
! 2012-02-13 13:37:04.027 Using username "root".
. 2012-02-13 13:37:05.028 Offered public key
. 2012-02-13 13:37:05.078 Offer of public key accepted
! 2012-02-13 13:37:05.078 Authenticating with public key "XXXXXXX.XX.XXX"
. 2012-02-13 13:37:05.489 Sent public key signature
. 2012-02-13 13:37:06.490 Access granted
. 2012-02-13 13:37:06.490 Initiating key re-exchange (enabling delayed compression)
. 2012-02-13 13:37:08.143 Doing Diffie-Hellman group exchange
. 2012-02-13 13:37:08.183 Doing Diffie-Hellman key exchange with hash SHA-1
. 2012-02-13 13:37:08.734 Initialised AES-256 SDCTR client->server encryption
. 2012-02-13 13:37:08.734 Initialised HMAC-SHA1 client->server MAC algorithm
. 2012-02-13 13:37:08.734 Initialised zlib (RFC1950) compression
. 2012-02-13 13:37:08.734 Initialised AES-256 SDCTR server->client encryption
. 2012-02-13 13:37:08.734 Initialised HMAC-SHA1 server->client MAC algorithm
. 2012-02-13 13:37:08.734 Initialised zlib (RFC1950) decompression
. 2012-02-13 13:37:08.774 Opened channel for session
. 2012-02-13 13:37:08.914 Started a shell/command
. 2012-02-13 13:37:08.914 --------------------------------------------------------------------------
. 2012-02-13 13:37:08.914 Using SFTP protocol.
. 2012-02-13 13:37:08.934 Doing startup conversation with host.
> 2012-02-13 13:37:08.934 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2012-02-13 13:37:09.815 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2012-02-13 13:37:09.815 SFTP version 3 negotiated.
. 2012-02-13 13:37:09.815 We believe the server has signed timestamps bug
. 2012-02-13 13:37:09.815 We will use UTF-8 strings when appropriate
. 2012-02-13 13:37:09.815 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
. 2012-02-13 13:37:09.815 Changing directory to "/data/Jornal".
. 2012-02-13 13:37:09.815 Getting real path for '/data/Jornal'
> 2012-02-13 13:37:09.815 Type: SSH_FXP_REALPATH, Size: 21, Number: 16
< 2012-02-13 13:37:09.845 Type: SSH_FXP_NAME, Size: 45, Number: 16
. 2012-02-13 13:37:09.845 Real path is '/data/Jornal'
. 2012-02-13 13:37:09.845 Trying to open directory "/data/Jornal".
> 2012-02-13 13:37:09.845 Type: SSH_FXP_LSTAT, Size: 21, Number: 263
< 2012-02-13 13:37:09.875 Type: SSH_FXP_ATTRS, Size: 37, Number: 263
. 2012-02-13 13:37:09.875 Getting current directory name.
. 2012-02-13 13:37:09.875 Listing directory "/data/Jornal".
> 2012-02-13 13:37:09.875 Type: SSH_FXP_OPENDIR, Size: 21, Number: 523
< 2012-02-13 13:37:09.905 Type: SSH_FXP_HANDLE, Size: 13, Number: 523
> 2012-02-13 13:37:09.905 Type: SSH_FXP_READDIR, Size: 13, Number: 780
< 2012-02-13 13:37:09.965 Type: SSH_FXP_NAME, Size: 1693, Number: 780
> 2012-02-13 13:37:09.965 Type: SSH_FXP_READDIR, Size: 13, Number: 1036
. 2012-02-13 13:37:09.965 Reading symlink "Alemtudo".
> 2012-02-13 13:37:09.965 Type: SSH_FXP_READLINK, Size: 30, Number: 1299
> 2012-02-13 13:37:09.965 Type: SSH_FXP_STAT, Size: 30, Number: 1553
< 2012-02-13 13:37:09.995 Type: SSH_FXP_STATUS, Size: 28, Number: 1036
. 2012-02-13 13:37:09.995 Storing reserved response
< 2012-02-13 13:37:10.015 Type: SSH_FXP_NAME, Size: 57, Number: 1299
< 2012-02-13 13:37:10.176 Type: SSH_FXP_ATTRS, Size: 37, Number: 1553
< 2012-02-13 13:37:10.176 Status code: 1
> 2012-02-13 13:37:10.176 Type: SSH_FXP_CLOSE, Size: 13, Number: 1796
. 2012-02-13 13:37:10.176 Startup conversation with host finished.
. 2012-02-13 13:37:12.799 Cached directory change via "1556" to "/data/Jornal/1556".
. 2012-02-13 13:37:12.799 Getting current directory name.
. 2012-02-13 13:37:12.799 Listing directory "/data/Jornal/1556".
> 2012-02-13 13:37:12.799 Type: SSH_FXP_OPENDIR, Size: 26, Number: 2059
< 2012-02-13 13:37:12.799 Type: SSH_FXP_STATUS, Size: 24, Number: 1796
. 2012-02-13 13:37:12.799 Discarding reserved response
< 2012-02-13 13:37:12.819 Type: SSH_FXP_HANDLE, Size: 13, Number: 2059
> 2012-02-13 13:37:12.819 Type: SSH_FXP_READDIR, Size: 13, Number: 2316
< 2012-02-13 13:37:12.860 Type: SSH_FXP_NAME, Size: 714, Number: 2316
> 2012-02-13 13:37:12.860 Type: SSH_FXP_READDIR, Size: 13, Number: 2572
< 2012-02-13 13:37:12.890 Type: SSH_FXP_STATUS, Size: 28, Number: 2572
< 2012-02-13 13:37:12.890 Status code: 1
> 2012-02-13 13:37:12.890 Type: SSH_FXP_CLOSE, Size: 13, Number: 2820
. 2012-02-13 13:37:18.047 Cached directory change via "/data" to "/data".
. 2012-02-13 13:37:18.047 Getting current directory name.
. 2012-02-13 13:37:18.047 Listing directory "/data".
> 2012-02-13 13:37:18.047 Type: SSH_FXP_OPENDIR, Size: 14, Number: 3083
< 2012-02-13 13:37:18.047 Type: SSH_FXP_STATUS, Size: 24, Number: 2820
. 2012-02-13 13:37:18.047 Discarding reserved response
< 2012-02-13 13:37:18.067 Type: SSH_FXP_HANDLE, Size: 13, Number: 3083
> 2012-02-13 13:37:18.067 Type: SSH_FXP_READDIR, Size: 13, Number: 3340
< 2012-02-13 13:37:18.117 Type: SSH_FXP_NAME, Size: 1254, Number: 3340
> 2012-02-13 13:37:18.117 Type: SSH_FXP_READDIR, Size: 13, Number: 3596
< 2012-02-13 13:37:18.137 Type: SSH_FXP_STATUS, Size: 28, Number: 3596
< 2012-02-13 13:37:18.137 Status code: 1
> 2012-02-13 13:37:18.137 Type: SSH_FXP_CLOSE, Size: 13, Number: 3844
. 2012-02-13 13:37:22.333 Cached directory change via "/data/Jornal/Arquivo" to "/data/Jornal/Arquivo".
. 2012-02-13 13:37:22.333 Getting current directory name.
. 2012-02-13 13:37:22.333 Listing directory "/data/Jornal/Arquivo".
> 2012-02-13 13:37:22.333 Type: SSH_FXP_OPENDIR, Size: 29, Number: 4107
< 2012-02-13 13:37:22.343 Type: SSH_FXP_STATUS, Size: 24, Number: 3844
. 2012-02-13 13:37:22.343 Discarding reserved response
< 2012-02-13 13:37:22.363 Type: SSH_FXP_HANDLE, Size: 13, Number: 4107
> 2012-02-13 13:37:22.363 Type: SSH_FXP_READDIR, Size: 13, Number: 4364
< 2012-02-13 13:37:22.413 Type: SSH_FXP_NAME, Size: 1187, Number: 4364
> 2012-02-13 13:37:22.413 Type: SSH_FXP_READDIR, Size: 13, Number: 4620
< 2012-02-13 13:37:22.433 Type: SSH_FXP_STATUS, Size: 28, Number: 4620
< 2012-02-13 13:37:22.433 Status code: 1
> 2012-02-13 13:37:22.433 Type: SSH_FXP_CLOSE, Size: 13, Number: 4868
. 2012-02-13 13:37:23.505 Cached directory change via "Edições DA" to "/data/Jornal/Arquivo/Edições DA".
. 2012-02-13 13:37:23.505 Getting current directory name.
. 2012-02-13 13:37:23.505 Listing directory "/data/Jornal/Arquivo/Edições DA".
> 2012-02-13 13:37:23.505 Type: SSH_FXP_OPENDIR, Size: 42, Number: 5131
< 2012-02-13 13:37:23.505 Type: SSH_FXP_STATUS, Size: 24, Number: 4868
. 2012-02-13 13:37:23.515 Discarding reserved response
< 2012-02-13 13:37:23.635 Type: SSH_FXP_HANDLE, Size: 13, Number: 5131
> 2012-02-13 13:37:23.635 Type: SSH_FXP_READDIR, Size: 13, Number: 5388
< 2012-02-13 13:37:23.825 Type: SSH_FXP_NAME, Size: 994, Number: 5388
> 2012-02-13 13:37:23.825 Type: SSH_FXP_READDIR, Size: 13, Number: 5644
< 2012-02-13 13:37:23.965 Type: SSH_FXP_STATUS, Size: 28, Number: 5644
< 2012-02-13 13:37:23.965 Status code: 1
> 2012-02-13 13:37:23.965 Type: SSH_FXP_CLOSE, Size: 13, Number: 5892
. 2012-02-13 13:37:25.337 Cached directory change via "Ano 2012" to "/data/Jornal/Arquivo/Edições DA/Ano 2012".
. 2012-02-13 13:37:25.337 Getting current directory name.
. 2012-02-13 13:37:25.337 Listing directory "/data/Jornal/Arquivo/Edições DA/Ano 2012".
> 2012-02-13 13:37:25.337 Type: SSH_FXP_OPENDIR, Size: 51, Number: 6155
< 2012-02-13 13:37:25.337 Type: SSH_FXP_STATUS, Size: 24, Number: 5892
. 2012-02-13 13:37:25.337 Discarding reserved response
< 2012-02-13 13:37:25.408 Type: SSH_FXP_HANDLE, Size: 13, Number: 6155
> 2012-02-13 13:37:25.408 Type: SSH_FXP_READDIR, Size: 13, Number: 6412
< 2012-02-13 13:37:25.488 Type: SSH_FXP_NAME, Size: 727, Number: 6412
> 2012-02-13 13:37:25.488 Type: SSH_FXP_READDIR, Size: 13, Number: 6668
< 2012-02-13 13:37:25.548 Type: SSH_FXP_STATUS, Size: 28, Number: 6668
< 2012-02-13 13:37:25.548 Status code: 1
> 2012-02-13 13:37:25.548 Type: SSH_FXP_CLOSE, Size: 13, Number: 6916
. 2012-02-13 13:37:28.422 [Shell] Looking up host "XX.XXX.XXX.XXX"
. 2012-02-13 13:37:28.422 [Shell] Connecting to XX.XXX.XXX.XXX port XXXXX
. 2012-02-13 13:37:28.452 [Shell] We claim version: SSH-2.0-WinSCP_release_4.3.6
. 2012-02-13 13:37:28.492 [Shell] Server version: SSH-2.0-OpenSSH_4.3
. 2012-02-13 13:37:28.492 [Shell] Using SSH protocol version 2
. 2012-02-13 13:37:28.522 [Shell] Server supports delayed compression; will try this later
. 2012-02-13 13:37:28.522 [Shell] Doing Diffie-Hellman group exchange
. 2012-02-13 13:37:28.622 [Shell] Doing Diffie-Hellman key exchange with hash SHA-1
. 2012-02-13 13:37:29.243 [Shell] Host key fingerprint is:
. 2012-02-13 13:37:29.243 [Shell] ssh-rsa 2048 14:cd:e0:b3:49:0b:42:5b:1c:d4:8e:c9:90:29:9a:76
. 2012-02-13 13:37:29.243 [Shell] Initialised AES-256 SDCTR client->server encryption
. 2012-02-13 13:37:29.263 [Shell] Initialised HMAC-SHA1 client->server MAC algorithm
. 2012-02-13 13:37:29.263 [Shell] Initialised AES-256 SDCTR server->client encryption
. 2012-02-13 13:37:29.263 [Shell] Initialised HMAC-SHA1 server->client MAC algorithm
. 2012-02-13 13:37:29.293 [Shell] Reading private key file "D:\Documents\Labor\Keys\DA\rsa-key-20090510.ppk"
! 2012-02-13 13:37:29.293 [Shell] Using username "root".
. 2012-02-13 13:37:30.265 [Shell] Offered public key
. 2012-02-13 13:37:30.305 [Shell] Offer of public key accepted
! 2012-02-13 13:37:30.305 [Shell] Authenticating with public key "XXXXXXX.XX.XXX"
. 2012-02-13 13:37:30.725 [Shell] Sent public key signature
. 2012-02-13 13:37:31.637 [Shell] Access granted
. 2012-02-13 13:37:31.637 [Shell] Initiating key re-exchange (enabling delayed compression)
. 2012-02-13 13:37:33.249 [Shell] Doing Diffie-Hellman group exchange
. 2012-02-13 13:37:33.289 [Shell] Doing Diffie-Hellman key exchange with hash SHA-1
. 2012-02-13 13:37:33.880 [Shell] Initialised AES-256 SDCTR client->server encryption
. 2012-02-13 13:37:33.880 [Shell] Initialised HMAC-SHA1 client->server MAC algorithm
. 2012-02-13 13:37:33.880 [Shell] Initialised zlib (RFC1950) compression
. 2012-02-13 13:37:33.880 [Shell] Initialised AES-256 SDCTR server->client encryption
. 2012-02-13 13:37:33.880 [Shell] Initialised HMAC-SHA1 server->client MAC algorithm
. 2012-02-13 13:37:33.880 [Shell] Initialised zlib (RFC1950) decompression
. 2012-02-13 13:37:33.920 [Shell] Opened channel for session
. 2012-02-13 13:37:34.020 [Shell] Started a shell/command
. 2012-02-13 13:37:34.020 [Shell] --------------------------------------------------------------------------
. 2012-02-13 13:37:34.020 [Shell] Using SCP protocol.
. 2012-02-13 13:37:34.020 [Shell] Doing startup conversation with host.
. 2012-02-13 13:37:34.020 [Shell] Skipping host startup message (if any).
> 2012-02-13 13:37:34.020 [Shell] echo "WinSCP: this is end-of-file:0"
< 2012-02-13 13:37:34.911 [Shell] WinSCP: this is end-of-file:0
. 2012-02-13 13:37:34.911 [Shell] Detecting variable containing return code of last command.
. 2012-02-13 13:37:34.911 [Shell] Trying "$status".
> 2012-02-13 13:37:34.911 [Shell] echo "$status" ; echo "WinSCP: this is end-of-file:0"
< 2012-02-13 13:37:36.253 [Shell] WinSCP: this is end-of-file:0
. 2012-02-13 13:37:36.253 [Shell] The response is not numerical exit code
. 2012-02-13 13:37:36.293 [Shell] Trying "$?".
> 2012-02-13 13:37:36.303 [Shell] echo "$?" ; echo "WinSCP: this is end-of-file:0"
< 2012-02-13 13:37:36.574 [Shell] 0
< 2012-02-13 13:37:36.754 [Shell] WinSCP: this is end-of-file:0
. 2012-02-13 13:37:36.754 [Shell] Return code variable "$?" selected.
. 2012-02-13 13:37:36.754 [Shell] Changing directory to "/data/Jornal/Arquivo/Edições DA/Ano 2012".
> 2012-02-13 13:37:36.764 [Shell] cd "/data/Jornal/Arquivo/Edições DA/Ano 2012" ; echo "WinSCP: this is end-of-file:$?"
! 2012-02-13 13:37:37.064 [Shell] /bin/bash: line 4: cd: /data/Jornal/Arquivo/Edições DA/Ano 2012: No such file or directory
< 2012-02-13 13:37:37.255 [Shell] WinSCP: this is end-of-file:1
* 2012-02-13 13:37:37.255 [Shell] (ECommand) Error changing directory to '/data/Jornal/Arquivo/Edições DA/Ano 2012'.
* 2012-02-13 13:37:37.255 [Shell] Command 'cd "/data/Jornal/Arquivo/Edições DA/Ano 2012"'
* 2012-02-13 13:37:37.255 [Shell] failed with return code 1 and error message
* 2012-02-13 13:37:37.255 [Shell] /bin/bash: line 4: cd: /data/Jornal/Arquivo/Edições DA/Ano 2012: No such file or directory.
. 2012-02-13 13:37:38.576 [Shell] Getting current directory name.
> 2012-02-13 13:37:38.576 [Shell] pwd ; echo "WinSCP: this is end-of-file:$?"
< 2012-02-13 13:37:38.877 [Shell] /root
< 2012-02-13 13:37:39.067 [Shell] WinSCP: this is end-of-file:0
. 2012-02-13 13:37:39.067 [Shell] Startup conversation with host finished.
. 2012-02-13 13:37:39.127 Copying file "1554" to "/data/Jornal/1554".
. 2012-02-13 13:37:39.137 Copying file on command session.
. 2012-02-13 13:37:39.137 [Shell] Changing directory to "/data/Jornal/Arquivo/Edições DA/Ano 2012".
> 2012-02-13 13:37:39.137 [Shell] cd "/data/Jornal/Arquivo/Edições DA/Ano 2012" ; echo "WinSCP: this is end-of-file:$?"
! 2012-02-13 13:37:39.368 [Shell] /bin/bash: line 6: cd: /data/Jornal/Arquivo/Edições DA/Ano 2012: No such file or directory
< 2012-02-13 13:37:39.568 [Shell] WinSCP: this is end-of-file:1
* 2012-02-13 13:37:39.568 [Shell] (ECommand) Error changing directory to '/data/Jornal/Arquivo/Edições DA/Ano 2012'.
* 2012-02-13 13:37:39.568 [Shell] Command 'cd "/data/Jornal/Arquivo/Edições DA/Ano 2012"'
* 2012-02-13 13:37:39.568 [Shell] failed with return code 1 and error message
* 2012-02-13 13:37:39.568 [Shell] /bin/bash: line 6: cd: /data/Jornal/Arquivo/Edições DA/Ano 2012: No such file or directory.
> 2012-02-13 13:37:40.469 [Shell] cp -p -r -f "1554" "/data/Jornal/1554" ; echo "WinSCP: this is end-of-file:$?"
! 2012-02-13 13:37:40.970 [Shell] cp: cannot stat `1554': No such file or directory
< 2012-02-13 13:37:40.970 [Shell] WinSCP: this is end-of-file:1
. 2012-02-13 13:37:40.970 Asking user:
. 2012-02-13 13:37:40.970 Error copying file '1554' to '/data/Jornal/1554'. ("Command 'cp -p -r -f ""1554"" ""/data/Jornal/1554""'
. 2012-02-13 13:37:40.970 failed with return code 1 and error message
. 2012-02-13 13:37:40.970 cp: cannot stat `1554': No such file or directory.")
* 2012-02-13 13:37:42.322 (EAbort) Operation aborted
. 2012-02-13 13:37:45.496 Closing connection.
. 2012-02-13 13:37:45.496 Sending special code: 12
. 2012-02-13 13:37:45.496 Sent EOF message
. 2012-02-13 13:37:45.506 [Shell] Closing connection.
. 2012-02-13 13:37:45.506 [Shell] Sending special code: 12
. 2012-02-13 13:37:45.506 [Shell] Sent EOF message

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: Copy fails with accented characters

OK, so you are duplicating a file on the remote side. This is not supported by SFTP. So WinSCP falls back to SCP for that operation. But I suppose a real copy operation (download/upload) works correctly, right?

Reply with quote

Guest

Re: Copy fails with accented characters

Thank you for enlightening me about that. Does that mean I am stuck here? Do you recommend any other way to manage a situation like this? I need to manage Linux servers from a remote Windows client. Using only Putty is just too much hassle in many cases, so I would like to have a graphical interface to do this. Thank you.

Reply with quote

Advertisement

You can post new topics in this forum