NYCPHP Meetup

NYPHP.org

[nycphp-talk] [OT] Using SCP to Transfer Files

Kenneth Dombrowski kenneth at ylayali.net
Fri Jan 12 09:18:57 EST 2007


i would guess: 

scp file.php me at host:'somedir/filedir/files\&pics/file.php' 

single quotes to escape it for the local shell + backslash to escape it
for the remote shell 



On 07-01-12 08:10 -0500, Peter Sawczynec wrote:
> When using SCP to transfer a file that uses an ampersand in the full file
> path name like so:
>  
> somedir/filedir/files&pics/file.php
>  
> ...the transfer fails because ampersand is a special command character to
> the application.
> How does one represent the ampersand in the file path so that SCP will
> ignore it?
>  
> Warmest regards, 
>  
> Peter Sawczynec 
> Technology Dir.
> Sun-code.com 
> Web related services
> 646.316.3678 
> ps at sun-code.com
>  

> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
> 
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
> 
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php



More information about the talk mailing list