From owner-freebsd-hackers Sat Mar 9 06:23:54 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA26703 for hackers-outgoing; Sat, 9 Mar 1996 06:23:54 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id GAA26689 for ; Sat, 9 Mar 1996 06:23:50 -0800 (PST) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id PAA22342; Sat, 9 Mar 1996 15:23:17 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id PAA27444; Sat, 9 Mar 1996 15:23:16 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.7.4/8.6.9) id PAA01266; Sat, 9 Mar 1996 15:14:51 +0100 (MET) From: J Wunsch Message-Id: <199603091414.PAA01266@uriah.heep.sax.de> Subject: Re: Weird problem. To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Sat, 9 Mar 1996 15:14:50 +0100 (MET) Cc: gavin@linux1.dlsu.edu.ph (Gavin Chan Lim) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from "Gavin Chan Lim" at Mar 9, 96 04:01:02 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL24 ME8a] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: owner-hackers@FreeBSD.ORG Precedence: bulk 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. ;-)