Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating symlink on linux problem

Status
Not open for further replies.

jamescpp

IS-IT--Management
Aug 29, 2001
70
US
I have a program running on Fedora Core 2 that creates some symlinks. The same program works fine on RH9 and FC1, but on FC2 the symlinks get created but are not viewable over samba or nfs. If I create the exact same symlink manually it's fine.

If I look at the symlink with ls in my specific terminal software(OpenSSH) the ones created with perl are a maroon color and the ones Icreated manually are a light blue.

Other than that I can't find any difference in them. Their properties seem the same.

I create the symlink like this:
symlink "$oldpath/$oldfilename", "$newpath/$newfilename" or die "Failed to create symlink $newpath/$newfilename: $!";

Any suggestions?

Thanks,
James
 
permissions ...?

HTH
--Paul

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ...
 
What I meant is, are there updated parameters to the symlink call?

Are they both running the same version of Perl

--Paul



It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ...
 
Same versions of perl as the systems it has worked on in the past? Probably not.

Are there updated parameters to the symlink call in perl or on the linux side? On the linux side I create it manually like I always have:
ln -s /usr/src/test /usr/src/newsymlink

Permissions on the linux side look exactly the same.

Don't know if that is what you're asking.

Thanks,
James
 
James,

Check the versions of perl, if different check the perldoc on symlink to see if there are any differences on both machines.

Each colour tells a story, just find out what Fuschia's is ... I think it's more Fuschia than purple,

HTH
--Paul

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top