LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-11-2004, 08:24 AM   #1
wheel
Member
 
Registered: Sep 2003
Posts: 33

Rep: Reputation: 16
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.
 
Old 02-11-2004, 09:10 AM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
Flashing Red means that the link is Dead.
it means the directory that link points to does not exist.
probably becuae you tryed it in wrong.

read man ln

ln [options] [dir/file to link to] [link name and lotion]
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
basic questions on hostname and domain name + related postfix questions Moebius Linux - Newbie 7 09-04-2007 11:50 AM
Solaris - Questions! Questions! Questions! qs_tahmeed Solaris / OpenSolaris 2 07-16-2005 05:27 AM
window manager questions and/or theme questions t3gah Linux - Software 2 02-27-2005 04:16 PM
Some questions... CryptDragoon Linux From Scratch 2 02-04-2004 08:28 PM
few questions? pudhiyavan Linux - General 2 10-03-2003 07:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration