Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!labrea!csli!gandalf From: gandalf@csli.STANFORD.EDU (Juergen Wagner) Newsgroups: comp.unix.questions Subject: Re: How to find directory name at end of symbolic links Message-ID: <7991@csli.STANFORD.EDU> Date: 9 Mar 89 21:55:00 GMT References: <10@sherpa.UUCP> <9745@smoke.BRL.MIL> <304@unet.UUCP> Sender: gandalf@csli.Stanford.EDU (Juergen Wagner) Reply-To: gandalf@csli.stanford.edu (Juergen Wagner) Organization: Center for the Study of Language and Information, Stanford U. Lines: 10 In article <304@unet.UUCP> maine@unet.PacBell.COM (Dennis J. W. Maine) groovily writes: >I am using SunOs 3.5 and want to know how to find out the directory >name at the end of a series of symbolic links. You have to use the readlink system call. On csli.stanford.edu I have put a program readlink (anon ftp from pub/Gandalf) which does what you want. -- Juergen Wagner gandalf@csli.stanford.edu wagner@arisia.xerox.com