ln questions
I've got two 'ln' questions I'm hoping you folks can help me with. I'm using mandrake 9.1.
I'm trying to set up some directories using a base set of files from a common directory and some unique config files.
1) I'm getting different results when I link directories manually vs. through a bash script.
When I enter "ln -s ../PRIMARYFILES/admin ." from the command prompt (where admin is a directory), I get what seems to be the correct link in the current directory. I can navigate down into the admin directory using the link. The link is a nice happy blue.
When I enter the same command in a bash script, the link is red and flashing and I can't navigate down into the directory.
I'd like to have the bash script operate the same way as entering it from the command prompt. What do I need to do/what am I doing wrong?
2) I'd like to have both the benefits of a linked directory (file changes in orig. directory and new files added show up in the link) as well as being able to add custom files into the linked directory. Specifically, if I add a new file in the original directory I'd like it to show up in the linked directory (OK so far....). But in the linked directory I'd like to be able to add a unique configuration file that doesn't show up back in the original directory. I'm guessing I can't have my cake and eat it too. Are there any tricks to doing this?
Thanks in advance,
g.
|