Article View: comp.unix.programmer
Article #3185Re: Geting program path
From: Max Waterman
Date: Fri, 19 Apr 1996 13:21
Date: Fri, 19 Apr 1996 13:21
9 lines
1026 bytes
1026 bytes
On aix, there is an environment variable called '_' which has the full
pathname of the current executable. Try getenv( "_" ) or use envp[0].
Max.
--
___ mailto:dwater@hursley.ibm.com
/ / / _ / / _ __ __ _ __ _
/ / / /_/ |/ / / / /_/ / /_ /_/ / / / /_/ /| /
/ / / / / /| /_/_/ / / / /_ / | / / / / / / |/
Technical Details
Message-ID:
<31779362.794B@wight.hursley.ibm.com>Path:
arc1-ca.pugleaf.net!hursley.ibm.com!newsReferences:
<3mtt4d$6ml@alfa.ist.utl.pt> <4l0khj$va9@news.alaska.edu> <Dq0qps.D6s@ceco.ceco.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!hursley.ibm.com!news From: Max Waterman <dwater@wight.hursley.ibm.com> Newsgroups: comp.unix.programmer,comp.lang.c Subject: Re: Geting program path Date: Fri, 19 Apr 1996 14:21:38 +0100 Organization: IBM UK Laboratories Ltd. Message-ID: <31779362.794B@wight.hursley.ibm.com> References: <3mtt4d$6ml@alfa.ist.utl.pt> <4l0khj$va9@news.alaska.edu> <Dq0qps.D6s@ceco.ceco.com> Reply-To: dwater@hursley.ibm.com NNTP-Posting-Host: wight.hursley.ibm.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.01 (X11; I; AIX 2) To: John Hobson <jhobson@ceco.ceco.com>