On Mon, 30 Oct 2000, Sonam Chauhan wrote:
> Using *both* quotes and escaping make it work
>
> e.g.: scp sonamc@websvr2:"/nethome/sonamc/test\:2" /tmp
>
> will copy a file called "test:2"
as does your example without quotes or escapes:
scp sonamc@websvr2:/nethome/sonamc/test:2 /tmp
The beauty of open source shines through. A fellow worker
looked at the source code for the rcp parsing mechanism
and found that as long as a "/" preceeds the ":", then the
command thinks that ":" is part of a file name, and not a hostname
delimiter.
The answer to my original question:
> > Here is an example that fails:
> >
> > [rickw] scp log_20001030-08:41:23 rickw@bini/home/rickw
> >
> > Bad host name: log_20001030-08
is as follows:
[rickw] scp ./log_20001030-08:41:23 rickw@bini/home/rickw
As they say, "Use the Source"
(note that bini in the above should read bini:)
--
Rick Welykochy || Praxis Services
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug