mv gives error in destination file

Advertisement

abengoa
Guest

mv gives error in destination file

Hello,

we're running Winscp version 4.2.2 in a Windows XP enviroment.

We're trying to move one file from remote to local directory and we get this error:


batch on
confirm off
Connecting to 129.35.116.212:990 ...
Connected with 129.35.116.212:990, negotiating SSL connection...
SSL connection established. Waiting for welcome message...
Connected
Starting the session...
Reading remote directory...
Session started.
Active session: [1] 1100001621@129.35.116.212
/download/SR
F:\UFT\AZERTIA\Indesit\Pendientes
Error moving file 'SR_R200812050251111005.txt' to 'F:\UFT\AZERTIA\Indesit\Pendientes\SR_R200812050251111005.txt'.
Filename invalid
(A)bort, (R)etry, (S)kip, Ski(p) all: Abort
Session '1100001621@129.35.116.212' closed.
No session.


Using logging parameter we get this other information:

. 2009-07-23 10:18:36.222 --------------------------------------------------------------------------
. 2009-07-23 10:18:36.232 WinSCP Version 4.2.2 (Build 480) (OS 5.1.2600 Service Pack 3)
. 2009-07-23 10:18:36.232 Login time: jueves, 23 de julio de 2009 10:18:36
. 2009-07-23 10:18:36.242 --------------------------------------------------------------------------
. 2009-07-23 10:18:36.242 Session name: 1100001621@129.35.116.212
. 2009-07-23 10:18:36.252 Host name: 129.35.116.212 (Port: 990)
. 2009-07-23 10:18:36.252 User name: 1100001621 (Password: Yes, Key file: No)
. 2009-07-23 10:18:36.262 Tunnel: No
. 2009-07-23 10:18:36.262 Transfer Protocol: FTP
. 2009-07-23 10:18:36.262 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2009-07-23 10:18:36.262 Proxy: none
. 2009-07-23 10:18:36.272 FTP: FTPS: Implicit SSL/TLS; Passive: Yes
. 2009-07-23 10:18:36.272 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2009-07-23 10:18:36.272 Cache directory changes: Yes, Permanent: Yes
. 2009-07-23 10:18:36.272 DST mode: 1
. 2009-07-23 10:18:36.272 --------------------------------------------------------------------------
. 2009-07-23 10:18:36.392 Connecting to 129.35.116.212:990 ...
. 2009-07-23 10:18:36.452 Connected with 129.35.116.212:990, negotiating SSL connection...
. 2009-07-23 10:18:36.723 SSL connection established. Waiting for welcome message...
< 2009-07-23 10:18:36.733 220-INDESIT Company Spa
< 2009-07-23 10:18:36.733 220 Supplier Collaboration FTP Portal
> 2009-07-23 10:18:36.733 USER 1100001621
< 2009-07-23 10:18:36.783 331 Password required for 1100001621
> 2009-07-23 10:18:36.783 PASS ************
< 2009-07-23 10:18:36.843 230 Logged on
> 2009-07-23 10:18:36.843 SYST
< 2009-07-23 10:18:36.893 215 UNIX emulated by FileZilla
> 2009-07-23 10:18:36.903 FEAT
< 2009-07-23 10:18:36.953 211-Features:
< 2009-07-23 10:18:36.953 MDTM
< 2009-07-23 10:18:36.963 REST STREAM
< 2009-07-23 10:18:36.963 SIZE
< 2009-07-23 10:18:36.963 MLST type*;size*;modify*;
< 2009-07-23 10:18:36.963 MLSD
< 2009-07-23 10:18:36.973 AUTH SSL
< 2009-07-23 10:18:36.973 AUTH TLS
< 2009-07-23 10:18:36.973 UTF8
< 2009-07-23 10:18:36.973 CLNT
< 2009-07-23 10:18:36.973 MFMT
< 2009-07-23 10:18:36.983 211 End
> 2009-07-23 10:18:36.983 PBSZ 0
< 2009-07-23 10:18:37.013 200 PBSZ=0
> 2009-07-23 10:18:37.013 PROT P
< 2009-07-23 10:18:37.063 200 Protection level set to P
. 2009-07-23 10:18:37.073 Connected
. 2009-07-23 10:18:37.073 --------------------------------------------------------------------------
. 2009-07-23 10:18:37.073 Using FTP protocol.
. 2009-07-23 10:18:37.083 Doing startup conversation with host.
> 2009-07-23 10:18:37.083 PWD
< 2009-07-23 10:18:37.143 257 "/" is current directory.
. 2009-07-23 10:18:37.143 Getting current directory name.
. 2009-07-23 10:18:37.143 Startup conversation with host finished.
. 2009-07-23 10:18:37.153 Cached directory change via "/download/SR" to "/download/SR".
. 2009-07-23 10:18:37.153 Getting current directory name.
. 2009-07-23 10:18:37.163 Retrieving directory listing...
> 2009-07-23 10:18:37.163 CWD /download/SR/
< 2009-07-23 10:18:37.214 250 CWD successful. "/download/SR" is current directory.
> 2009-07-23 10:18:37.224 PWD
< 2009-07-23 10:18:37.274 257 "/download/SR" is current directory.
> 2009-07-23 10:18:37.274 TYPE A
< 2009-07-23 10:18:37.324 200 Type set to A
> 2009-07-23 10:18:37.324 PASV
< 2009-07-23 10:18:37.374 227 Entering Passive Mode (129,35,116,212,195,219)
> 2009-07-23 10:18:37.384 LIST -a
< 2009-07-23 10:18:37.484 150 Connection accepted
. 2009-07-23 10:18:37.564 SSL connection established
< 2009-07-23 10:18:37.584 226 Transfer OK
. 2009-07-23 10:18:38.015 Directory listing successful
. 2009-07-23 10:18:38.055 Moving file "SR_R200812050251111005.txt" to "F:\UFT\AZERTIA\Indesit\Pendientes\SR_R200812050251111005.txt".
> 2009-07-23 10:18:38.055 RNFR /download/SR/SR_R200812050251111005.txt
< 2009-07-23 10:18:38.115 350 File exists, ready for destination name.
> 2009-07-23 10:18:38.125 RNTO /download/SR/F:\UFT\AZERTIA\Indesit\Pendientes\SR_R200812050251111005.txt
< 2009-07-23 10:18:38.175 550 Filename invalid
. 2009-07-23 10:18:38.175 Asking user:
. 2009-07-23 10:18:38.175 Error moving file 'SR_R200812050251111005.txt' to 'F:\UFT\AZERTIA\Indesit\Pendientes\SR_R200812050251111005.txt'. ("Filename invalid")
. 2009-07-23 10:18:38.195 Disconnected from server
. 2009-07-23 11:29:08.585 --------------------------------------------------------------------------
. 2009-07-23 11:29:08.605 WinSCP Version 4.2.2 (Build 480) (OS 5.1.2600 Service Pack 3)
. 2009-07-23 11:29:08.605 Login time: jueves, 23 de julio de 2009 11:29:08
. 2009-07-23 11:29:08.605 --------------------------------------------------------------------------
. 2009-07-23 11:29:08.605 Session name: 1100001621@129.35.116.212
. 2009-07-23 11:29:08.605 Host name: 129.35.116.212 (Port: 990)
. 2009-07-23 11:29:08.615 User name: 1100001621 (Password: Yes, Key file: No)
. 2009-07-23 11:29:08.615 Tunnel: No
. 2009-07-23 11:29:08.615 Transfer Protocol: FTP
. 2009-07-23 11:29:08.615 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2009-07-23 11:29:08.615 Proxy: none
. 2009-07-23 11:29:08.615 FTP: FTPS: Implicit SSL/TLS; Passive: Yes
. 2009-07-23 11:29:08.625 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2009-07-23 11:29:08.625 Cache directory changes: Yes, Permanent: Yes
. 2009-07-23 11:29:08.625 DST mode: 1
. 2009-07-23 11:29:08.625 --------------------------------------------------------------------------
. 2009-07-23 11:29:08.746 Connecting to 129.35.116.212:990 ...
. 2009-07-23 11:29:08.826 Connected with 129.35.116.212:990, negotiating SSL connection...
. 2009-07-23 11:29:09.166 SSL connection established. Waiting for welcome message...
< 2009-07-23 11:29:09.166 220-INDESIT Company Spa
< 2009-07-23 11:29:09.166 220 Supplier Collaboration FTP Portal
> 2009-07-23 11:29:09.176 USER 1100001621
< 2009-07-23 11:29:09.226 331 Password required for 1100001621
> 2009-07-23 11:29:09.226 PASS ************
< 2009-07-23 11:29:09.276 230 Logged on
> 2009-07-23 11:29:09.276 SYST
< 2009-07-23 11:29:09.326 215 UNIX emulated by FileZilla
> 2009-07-23 11:29:09.326 FEAT
< 2009-07-23 11:29:09.386 211-Features:
< 2009-07-23 11:29:09.386 MDTM
< 2009-07-23 11:29:09.386 REST STREAM
< 2009-07-23 11:29:09.386 SIZE
< 2009-07-23 11:29:09.396 MLST type*;size*;modify*;
< 2009-07-23 11:29:09.396 MLSD
< 2009-07-23 11:29:09.396 AUTH SSL
< 2009-07-23 11:29:09.396 AUTH TLS
< 2009-07-23 11:29:09.396 UTF8
< 2009-07-23 11:29:09.396 CLNT
< 2009-07-23 11:29:09.406 MFMT
< 2009-07-23 11:29:09.406 211 End
> 2009-07-23 11:29:09.406 PBSZ 0
< 2009-07-23 11:29:09.436 200 PBSZ=0
> 2009-07-23 11:29:09.436 PROT P
< 2009-07-23 11:29:09.527 200 Protection level set to P
. 2009-07-23 11:29:09.527 Connected
. 2009-07-23 11:29:09.527 --------------------------------------------------------------------------
. 2009-07-23 11:29:09.527 Using FTP protocol.
. 2009-07-23 11:29:09.527 Doing startup conversation with host.
> 2009-07-23 11:29:09.537 PWD
< 2009-07-23 11:29:09.587 257 "/" is current directory.
. 2009-07-23 11:29:09.587 Getting current directory name.
. 2009-07-23 11:29:09.587 Startup conversation with host finished.
. 2009-07-23 11:29:09.647 Retrieving directory listing...
> 2009-07-23 11:29:09.647 CWD /download/SR/
< 2009-07-23 11:29:09.707 250 CWD successful. "/download/SR" is current directory.
> 2009-07-23 11:29:09.707 PWD
< 2009-07-23 11:29:09.787 257 "/download/SR" is current directory.
> 2009-07-23 11:29:09.787 TYPE A
< 2009-07-23 11:29:09.857 200 Type set to A
> 2009-07-23 11:29:09.857 PASV
< 2009-07-23 11:29:09.917 227 Entering Passive Mode (129,35,116,212,195,218)
> 2009-07-23 11:29:09.927 LIST -a
< 2009-07-23 11:29:10.047 150 Connection accepted
. 2009-07-23 11:29:10.117 SSL connection established
< 2009-07-23 11:29:10.138 226 Transfer OK
. 2009-07-23 11:29:10.558 Directory listing successful
. 2009-07-23 11:29:10.598 Moving file "/download/SR/SR_R200812050251111005.txt" to "F:\UFT\AZERTIA\Indesit\Pendientes\SR_R200812050251111005.txt".
> 2009-07-23 11:29:10.598 RNFR /download/SR/SR_R200812050251111005.txt
< 2009-07-23 11:29:10.658 350 File exists, ready for destination name.
> 2009-07-23 11:29:10.658 RNTO /F:\UFT\AZERTIA\Indesit\Pendientes\SR_R200812050251111005.txt
< 2009-07-23 11:29:10.708 550 Filename invalid
. 2009-07-23 11:29:10.708 Asking user:
. 2009-07-23 11:29:10.708 Error moving file '/download/SR/SR_R200812050251111005.txt' to 'F:\UFT\AZERTIA\Indesit\Pendientes\SR_R200812050251111005.txt'. ("Filename invalid")
. 2009-07-23 11:29:10.718 Disconnected from server


we think that just before the destination string, the program is inserting the local path.

get and rm commands are working well but mv gets this problem.

We'd apreciate your help.

Regards,

Andoni Bengoa

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: mv gives error in destination file

You haven't posted your script, so I can guess only. My guess it that you are trying to use mv to move remote file to local directory. But mv can move remote file to other remote directory only. For what you are possibly trying to do, use get -delete.

Reply with quote

Advertisement

You can post new topics in this forum