help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to do "cp -sR" without "can make relative symbolic links..." err


From: Paul Lutus
Subject: Re: How to do "cp -sR" without "can make relative symbolic links..." errors
Date: Mon, 23 Aug 2004 10:12:59 -0700
User-agent: KNode/0.7.2

Fred Phase wrote:

> I want to copy a directory tree but the target tree should consist
> only of symlinks to the source tree (with the exception of
> directories).
> 
> It's basically to create a new instance of a PHP application.
> 
> It seems to me that "cp -sR <sourcedir> <targetdir>" should work but
> in practive I get loads of "can make relative symbolic links only in
> current directory" errors.

The error message tells you what the problem is. To make these symlinks, you
have to provide complete paths as arguments.

> So it seems the -s switch doesn't really work with the -R switch.
> 
> Is there any way to get around this limitation?

See above.

> 
> -------------------------------------
> 
> HOLD ON! Just found out I can make it work if I type the _full_ path
> name for the source directory.

Hoo-boy. You sure you couldn't have taken the time to rewrite your post?

-- 
Paul Lutus
http://www.arachnoid.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]