[mythtv-users] MythWeb filename to actual filename

Michael T. Dean mtdean at thirdcontact.com
Wed Apr 8 19:35:55 UTC 2009


On 04/08/2009 02:33 PM, Bobby Gill wrote:
>>>> 'cp -L' will copy the target rather than the link itself.
>>>>         
>>> And--though Raymond's answer is the best answer, as you should never rely
>>> on defaults--on systems that use GNU coreutils, cp (with no arguments)
>>> defaults to following symlinks.  Generally, -L is only required when you put
>>> in certain arguments that would imply you do not want to dereference
>>> symlinks.
>> Ah... my files are all stored on a FreeBSD machine, whose default behavior
>> is just to copy the link.
> Okay, I tried that but I keep getting no such file or directory.
>
> [14:31:55] /media/mythbox/recording-links > ls -l | grep -i amtrak
> lrwxrwxrwx 1 bobby bobby 35 2009-04-08 03:00 The Colbert Report- Amtrak
> Nailed Em segment-2009.02.03.mpg -> /media/myth/1042_20090203093000.mpg
> [14:32:01] /media/mythbox/recording-links > cp -vL The\ Colbert\ Report-\
> Amtrak\ Nailed\ Em\ segment-2009.02.03.mpg /media/stuff/
> cp: cannot stat `The Colbert Report- Amtrak Nailed Em
> segment-2009.02.03.mpg': No such file or directory
> [14:32:10] /media/mythbox/recording-links >
>
> Even without -L it does the same thing.

That means that you have network mounts and the linked path doesn't work.

If you're using CIFS you have to configure the server to follow symlinks 
and may have to disable *nix extensions.  For NFS, you probably have to 
make sure that the directory to which the links refer is at the exact 
same path on the client as it is on the server (though there may be some 
follow symlink setting for NFS, too).

Mike


More information about the mythtv-users mailing list