scp strange behavior
From: Alf (xelahome_at_nospam.free.fr)
Date: 07/30/03
- Next message: be: "Re: pls need some guidance"
- Previous message: pol: "zsh function does not get in foreground"
- Next in thread: Chris F.A. Johnson: "Re: scp strange behavior"
- Reply: Chris F.A. Johnson: "Re: scp strange behavior"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 30 Jul 2003 09:41:20 +0200
Hello,
I wrote a script which copy files to remote host with scp command. My Goal
is to copy files with space in their name (I know it is bad!!! but users are
using those #!!!# files!) :-(
I don't understand really well the behavior of scp command.
Indeed, in my script the following command dont work and for example for
file "/path/file with space.jpg" I got :
"/path/file with space.jpg" : No such file or directory error.
$REMOTE_COPY "\".$FILE_NAME\""
$REMOTE_USER@$HTTP_HOST:$REMOTE_HTTP_DOC_ROOT$DIR_NAME
However in the same script the following command works!!!
$REMOTE_COPY "\".$FILE_NAME\"" /tmp
I don't understand why!
Does someone have a clue?
Thank you in advance
Alf
- Next message: be: "Re: pls need some guidance"
- Previous message: pol: "zsh function does not get in foreground"
- Next in thread: Chris F.A. Johnson: "Re: scp strange behavior"
- Reply: Chris F.A. Johnson: "Re: scp strange behavior"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|