From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,35d28345ad738744 X-Google-Attributes: gidfee84,public From: nospam@zk3.dec.com (Eric Werme - replace nospam with werme) Subject: Re: automount + pwd Date: 1999/04/30 Message-ID: <7gd6ul$4mi$1@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 472899877 References: <3729B10B.798D9F78@imk.fzk.de> Organization: Digital Equipment Corporation Reply-To: (Replace nobody with werme) nobody@zk3.dec.com Newsgroups: comp.unix.osf.osf1 Udo Grabowski writes: >Everything is mounted on it's place, but when I'm 'grabow' and type >a 'pwd' or do a filename inquiry in Fortran, my path appears as >'/tmp_mnt/home/grabow' instead of '/home/grabow'. Is it possible >to setup automount to use directly the specified mount points like >a static mount would do ? Not without implementing autofs, which we'd like to do someday. /home is what I call an "intercept point", visible if you do "mount -e". It's an NFS mountpoint that points to a limited NFS within automount. When you reference /home/grabow, automount catches the reference, mounts imksun:/export/home2/grabow on /tmp_mnt/home/grabow, then says that /home/grabow is a symbolic link to /tmp_mnt/home/grabow. The biggest problems with the scheme are related to things like "at" or cron trying to cd to /tmp_mnt/home/grabow long after it's been unmounted. Some shells (bash and ksh come to mind) implement pwd as a builtin and will report /home/grabow, at least they will if you cd there. You may also be able to get /home/grabow into a Fortran program by fetching the PWD environment variable. -Ric Werme -- <> Eric (Ric) Werme <> The above is unlikely to contain <> <> ROT-13 addresses: <> official claims or policies of <> <> <> Compaq Computer Corp. <> <> <> http://www.cyberportal.net/werme <>