문제

I have this file:

C:\Documents and Settings\tc\My Documents\Downloads\ee_server_wizard.zip

and I am trying to upload it to server via pscp like this:

pscp C:\Documents and Settings\tc\My Documents\Downloads\ee_server_wizard.zip root@mydomain.com:/var/www/

But it has problem with the spaces. Which is the right syntax?

Thanks in advance

PS: I could just move it to a path with no spaces but I want to know the syntax.

도움이 되었습니까?

해결책

You simply put quotes around it. (That has nothing to do with pscp, but is a Windows and Unix-like shell thing; remember that the escape rules are different though.)

pscp "a b" foo@bar:
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top