Hi everybody,
I'm a newbie and hope that someone help me in this problem.
I have a filename in LINUX with single quote like this:
abs@hosttest:~/ABS/BETY/cygdrive/C/DECLARANOT 1.1.4/02 - ROCK/052 - GUNSROSES> dir You*
-rw-r--r-- 1 abs users 2365881 2008-08-25 09:16 You're Crazy.mp3
The file is You're Crazy.mp3.
I want to recover this file from windows, i use the next command:
C:\>rsync -avrz --progress abs@test.no-ip.org://home/abs/ABS/BETY/cygdrive/C/"'DECLARANOT 1.1.4/02 - ROCK/052 - GUNS
ROSES/You're Crazy.mp3'" /ABS_RECOVERY\
Password:
bash: -c: line 0: unexpected EOF while looking for matching `''
bash: -c: line 1: syntax error: unexpected end of file
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(644) [receiver=3.0.2]
when the filename has no single quote, i have not problems.
[LEFT]I hope someone can help me with this problem.
Thanks in advance, and congratulations for this great forum.[/LEFT]
Atte
The Boysito
PD.Sorry for my poor english
zaxxon
2
Try escaping it with a backslash.
Hi zaxxon,
Thanks for your answer.
I do this ...
C:\>rsync -avrz --progress abs@test.no-ip.org://home/abs/ABS/BETY/cygdrive/C/"\\'DECLARANOT 1.1.4/02 - ROCK/052 - GUNS
ROSES/You're Crazy.mp3\'" /ABS_RECOVERY\
Password:
rsync: on remote machine: -: unknown option
rsync error: syntax or usage error (code 1) at main.c(1426) [server=3.0.2]
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(644) [receiver=3.0.2]
But don't work ( I think windows-msdos, does not support backslash)
This is the error message:
Is correct the escaping backslash implementing ?
Any idea ?
Thanks in advance!
Try using only the " character instead of both " and ' .
HTH
Hi, bluescreen
I try it, but i get the same error.
C:\>rsync -avrz --progress abs@test.no-ip.org://home/abs/ABS/BETY/cygdrive/C/"DECLARANOT 1.1.4/02 - ROCK/052 - GUNSR
OSES/You're Crazy.mp3" /ABS_RECOVERY\
Password:
bash: -c: line 0: unexpected EOF while looking for matching `''
I have even tested with several combinations, but ... nothing.
I have no doubt that it works in linux, but
[LEFT][LEFT]the problem is that I need to run in dos-windows environment
maybe have to try it yourself from a dos-windows to see the problem
Another idea!
[/LEFT]
[/LEFT]
jojan
8
If you are using windows dos shell you jsut need to specify the file it in the double quotes "you're cray"
You have tried to escape like this:
rsync -avrz --progress abs@test.no-ip.org://home/abs/ABS/BE.../C/"DECLARANOT 1.1.4/02 - ROCK/052 - GUNSR
OSES/You\'re Crazy.mp3" /ABS_RECOVERY\
Note the "You\'re"
jojan
10
if you are using dos shell jsut double quotes the file name like "you'are crazy.mp3"