Subject: Re: Writing a portable copy-files
From: rpw3@rpw3.org (Rob Warnock)
Date: Mon, 26 May 2008 21:58:07 -0500
Newsgroups: comp.lang.lisp
Message-ID: <9amdnf9Pfbsi5abVnZ2dnUVZ_trinZ2d@speakeasy.net>
David Golden  <david.golden@oceanfree.net> wrote:
+---------------
| FWIW, linux programs, unless they're running in a funny
| restricted environment, can usually find their executable
| by following the /proc/self/exe symlink.  Linux Is Not UniX. :-)
+---------------

On FreeBSD, said symlink is called "/proc/curproc/file":

    cmu> (truename "/proc/curproc/file")

    #P"/u/rpw3/src/cmd/cmucl-19c/bin/lisp"
    cmu> 


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607