sftp and escape characters
Will Maier
willmaier at ml1.net
Thu Oct 20 10:23:19 PDT 2005
On Thu, Oct 20, 2005 at 10:01:45AM -0700, ross wrote:
> my prompt copy and pasted.
> sftp> put "/mnt/pammy/music/Nadasurf-\ Popular.mp3" /files/upload
> Bad escaped character ' '
> sftp> put '/mnt/pammy/music/Nadasurf-\ Popular.mp3' /files/upload
> Bad escaped character ' '
If you're putting the filename in quotes, you don't need to escape
the space (hence the 'Bad escape' error).
~ % touch "this is a test"
~ % sftp $SERVER
Connecting to merk...
sftp> put this\ is\ a\ test
File "this\\" not found.
sftp> put "this is a test"
Uploading this is a test to /home/$USER/this is a test
this is a test 100% 0 0.0KB/s 00:00
sftp>
--
o--------------------------{ Will Maier }--------------------------o
| jabber:..wcmaier at jabber.ccc.de | email:..........wcmaier at ml1.net |
| \.........wcmaier at cae.wisc.edu | \..........wcmaier at cae.wisc.edu |
*------------------[ BSD Unix: Live Free or Die ]------------------*
More information about the freebsd-questions
mailing list