Edi Weitz wrote:

>Does CMUCL provide a way to determine the location of the executable
>that started it?
>
>I understand that there's no portable solution that'll work for /all/
>Unices but maybe there's a function that works on all systems CMUCL
>has been ported to?
>
>On Linux one could use something like
>
>  (truename (format nil "/proc/~A/exe" (unix:unix-getpid)))
>
>but that certainly isn't portable.
>
Also, note that the pathname returned may not even exist, although Linux 
is kind enough
to tell you that:

$ ls -l /proc/22703/exe
lrwxrwxrwx  1 craigl craigl 0 Apr 19 09:20 /proc/22703/exe -> 
/home/craigl/foo (deleted)

Regards,

Craig Ludington


Reply via email to