Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!adm!news From: herman%nrl.decnet@ccf2.nrl.navy.mil (NRL::HERMAN) Newsgroups: comp.unix.questions Subject: finding location of executable Message-ID: <24039@adm.BRL.MIL> Date: 1 Aug 90 23:36:24 GMT Sender: news@adm.BRL.MIL Lines: 9 How can I determine the location of a program from within the program, that is, which directory contains the executable. The program is written in C, and is running under ULTRIX. Please respond directly to me, I will summarize to the net. Charles Herman herman@nrl.cmvax.navy.mil