Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Mar 1996 15:14:50 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-hackers@freebsd.org (FreeBSD hackers)
Cc:        gavin@linux1.dlsu.edu.ph (Gavin Chan Lim)
Subject:   Re: Weird problem.
Message-ID:  <199603091414.PAA01266@uriah.heep.sax.de>
In-Reply-To: <Pine.LNX.3.91.960309155828.24018C-100000@ccslinux.dlsu.edu.ph> from "Gavin Chan Lim" at Mar 9, 96 04:01:02 pm

next in thread | previous in thread | raw e-mail | index | archive | help
As Gavin Chan Lim wrote:
> 
> 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

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603091414.PAA01266>