*- On 25 Jan, Rich McClellan wrote about "Re: directory listing..."
> On Tue, 25 Jan 2000, Brian Servis wrote:
> 
>> *- On 25 Jan, Rich McClellan wrote about "directory listing..."
> [-----------------%< snip -----------------------]
>> 
>> Make a directory of symlinks that point to your actual mount points that
>> are controlled by the automounter.  Thus the symlinks will be orphaned
>> links until they are used.  Take a look at
>> http://www.Linux-Consulting.com/Amd_AutoFS/autofs-5.html#ss5.3.
>> 
>> Example:  Let autofs manage everything under /.autofs/net and then make
>> /net a farm of symlinks to /.autofs/net as in:
>> 
>> /net/machine1 -> /.autofs/net/machine1  where /.autofs/net/machine1 is
>> created by the automounter when someone cd's to /net/machine1.
>> 
>> #/etc/auto.master
>> /.autofs/net /etc/auto.net
>> 
>> #/etc/auto.net
>> machine1 <options> <location>
>> 
> 
> Thanks for the reply, but I think that creates a new annoyance.  The
> problem with this method--I think*-- is that when the user leaves
> /net/machine1 with a `cd ..` s/he will be in /.autofs/net which is
> confusing to new users and annoying to others.
> 
> *I have sym links from /usr/local/<software_package> to
> /misc/<software_package> and the above problem occurs.
> 

That depends on the shell I guess.  I use tcsh and have the variable
'symlinks' set to 'ignore'.  Example:

{~}[28]>cd /bri/c
{/bri/c}[29]>echo $cwd
/bri/c
{/bri/c}[30]>pwd
/.autofs/bri/c
{/bri/c}[31]>cd ..
{/bri}[32]>echo $cwd
/bri
{/bri}[33]>pwd
/bri

I don't know if other shells handle it like this as well or not.  But I
don't recall bash having problems with this either, let's see.....

{~}[37]>bash
bash-2.03$ cd /bri/c
bash-2.03$ pwd
/bri/c
bash-2.03$ pwd -P
/.autofs/bri/c
bash-2.03$ cd ..
bash-2.03$ pwd
/bri



Brian Servis
-- 
------------------------------------------------------------------------
[EMAIL PROTECTED] (preferred)         |  Never criticize anybody until you  
[EMAIL PROTECTED]                     |  have walked a mile in their shoes,
[EMAIL PROTECTED]                   |  because by that time you will be a
http://www.ecn.purdue.edu/~servis   |  mile away and have their shoes.

Reply via email to