|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Script makes broken symlinks
I have a script that uploads a folder of images to a server then makes a symbolic link pointing to the image folder elsewhere on the server. The script works perfectly from several Macs except one. There is one Mac that creates broken symlinks on the server. It won't even create proper symlink via the command line. How do I correct this? Do I have to reinstall OSX? Is there a bad library I can replace?
cheers, Mark |
|
#2
|
|||
|
|||
|
try checking the filesystem. (fsck)
-Steven |
|
#3
|
|||
|
|||
|
what's a broken symlinks ?
|
|
#4
|
|||
|
|||
|
fsck didn't work
I ran fsck and reported everything OK. A broken symlink is one that has lost what it is pointing to. In my case a certain computer is making a bad symlinks to begin with. The other computers running the same script make correct symlinks. Is there a way to view the symlink data?
|
|
#5
|
|||
|
|||
|
Quote:
ls -l ? What happens when you try to make a symlink manually? If you run ls -l, it will show you the link and what is thinks it is pointing to. The only way I can think for the link to be broken, is if your file/directories that you are trying to point to aren't really there in the first place. |
|
#6
|
|||
|
|||
|
i still not understand what's
a broken and bad symlink is ![]() a symbolic link ( using ln -s ../a/b/c ) will make a c (basename of ../a/b/c) link pointing to ../a/b/c in your 'pwd'dir ln does NOT check the existence of ../a/b/c if ../a/b/c is there OK, else c points to nothing |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Script makes broken symlinks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|