Re: problem with perl created symlinks

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

 



On Thu, 2004-07-15 at 14: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.
> 
> Dave.
> 

Dave,

Thanks. Looks like that is the problem. Somewhere in the program I'm
screwing up the path+filename that the symlink points to. 

Thanks,
James



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux