The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.
So I've been trying to copy a file on a remote server to my local machine using SCP, but I can't get the thing to escape spaces.
I've tried the following:
scp trentus@server.com:"/home/t/trentus/classes/comp org/assignment 1/file.txt" ~/Desktop/file.txt
and I get
scp: /home/t/trentus/class/comp: No such file or directory
scp: org/assignment: No such file or directory
scp: 1/file.txt: No such file or directory
Have you tried using an underscore for the space? Some programs I've used will interpret a space in a remote file system in an underscore if they don't handle spaces normally. I haven't used SCP so I'm not familiar with it.
You could even try using %20 instead of spaces, but I doubt you're using a web server :P
Posts
You could even try using %20 instead of spaces, but I doubt you're using a web server :P
scp trentus@server.com:"/home/t/trentus/classes/comp\\ org/assignment\\ 1/file.txt" ~/Desktop/file.txt
Fugu, a GUI for SFTP has no problem copying the file using SCP. I'd love to be able to do it via the command line though.
Edit:
That worked perfectly. Thank you very much. The only question is, why? I might have to ask one of lab assistants or something.
single slash, surround it with double quotes, and that SHOULD work...at least works for me here