problem with perl created symlinks

Jim Higson jh at 333.org
Thu Jul 15 18:48:22 UTC 2004


On Thursday 15 July 2004 19:35, Dave Mitchell wrote:
> On Thu, Jul 15, 2004 at 10:12:30AM -0400, James Pifer wrote:
> > I have a perl script that creates some symlinks. The symlinks get
> > created but I can't see them over samba or nfs. If I create the symlink
> > manually at a prompt it works fine and I can see it over samba and nfs.
> > If I compare two create each way I can't see any difference in file
> > properties.
> >
> > If I do a simple ls, the symlink created by perl is a maroon color (in
> > my specific terminal session), while the manually created one is a light
> > blue color. What could be making these different?
> >
> > This is on FC2. Anyone know what the problem could be?
> >
> > Perl is creating them like:
> > symlink "$oldpath/$oldfilename", "$newpath/$newfilename" or die "Failed
> > to create symlink $newpath/$newfilename: $!";
>
> At a guess I'd say that the ones you created with the perl script
> point to the wrong location.
> Try 'ls -l' and ls '-lL' on both the good and the bad links and
> us what you get.

Or use ls with the --color=auto switch. Any broken symlinks should be rather 
obvious.





More information about the users mailing list