Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!werple.apana.org.au!otis.apana.org.au!serval.net.wsu.edu!netnews.nwnet.net!oracle.pnl.gov!osi-east2.es.net!cronkite.nersc.gov!dancer.ca.sandia.gov!overload.lbl.gov!lll-winken.llnl.gov!sol.ctr.columbia.edu!howland.reston.ans.net!swrinde!pipex!uunet!zib-berlin.de!cs.tu-berlin.de!news From: nickel@prz.tu-berlin.de (Juergen Nickelsen) Newsgroups: comp.os.386bsd.development Subject: Re: How to find the filename of the binary executable... Followup-To: comp.os.386bsd.development Date: 07 Dec 1994 16:38:30 GMT Organization: Technical University of Berlin, Germany Lines: 17 Message-ID: <NICKEL.94Dec7173830@toftum.prz.tu-berlin.de> References: <3c35e2$6sv@shore.shore.net> Reply-To: nickel@cs.tu-berlin.de NNTP-Posting-Host: toftum.prz.tu-berlin.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit In-reply-to: witr@rwwa.com's message of 7 Dec 1994 02:08:02 GMT In article <3c35e2$6sv@shore.shore.net> witr@rwwa.com (Robert Withrow) writes: > Can someone tell me how to find the filename of the *binary* > file being executed (on, say, FreeBSD 1.1.5.1, or sunos.recent)? I think this is covered in the comp.unix.questions FAQ. Summary (as I remember it): - In general it doesn't work. There are cases where the name has changed in between or removed; you may have exec'ed /dev/fd/1 etc. - There are some attempts that do moderately well for the common case where nothing special applies. -- Juergen Nickelsen