Date: Sat, 9 Mar 1996 13:59:06 -0700 (MST) From: Terry Lambert <terry@lambert.org> To: joerg_wunsch@uriah.heep.sax.de Cc: freebsd-hackers@FreeBSD.ORG, gavin@linux1.dlsu.edu.ph Subject: Re: Weird problem. Message-ID: <199603092059.NAA21396@phaeton.artisoft.com> In-Reply-To: <199603091414.PAA01266@uriah.heep.sax.de> from "J Wunsch" at Mar 9, 96 03:14:50 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> > Given the pid of a process, is there any way of finding the executable > > file (including complete path) of this process? > > This is one of the Unix FAQs. No, it's not possible, and nobody could > even guarantee you that the pathname is still available. If you don't > believe it, consider the following: > > ./foo & rm -f foo Well, if it hasn't been deleted, it's possible. But of course, by the time the reverse lookup is complete, it has probably finished running anyway (it's very time consuming, but there is nothing preventing you from writing a program to do it for you). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603092059.NAA21396>