From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,eda9cd0ad906c54b,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!fi.sn.net!newsfeed2.fi.sn.net!nntp.inet.fi!inet.fi!newsfeed1.nokia.com!news1.nokia.com!news2.nokia.com.POSTED!not-for-mail From: Dirk Heinrichs Subject: How to get pathname of executable Newsgroups: comp.lang.ada Organization: Capgemini Deutschland GmbH User-Agent: KNode/0.10 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit Message-ID: Date: Tue, 13 Dec 2005 14:40:16 GMT NNTP-Posting-Host: 172.25.104.26 X-Complaints-To: newsmaster@nokia.com X-Trace: news2.nokia.com 1134484816 172.25.104.26 (Tue, 13 Dec 2005 16:40:16 EET) NNTP-Posting-Date: Tue, 13 Dec 2005 16:40:16 EET Xref: g2news1.google.com comp.lang.ada:6862 Date: 2005-12-13T14:40:16+00:00 List-Id: Hello, I'm trying to find out how to get the complete pathname of an ada executable on Linux. I already tried Ada.Command_Line.Command_Name, but that only gives the executable's name as the user typed it. I want to find out where it is stored in the filesystem so that it can load other files from directories relative to its own directory. Thanx... Dirk -- Dirk Heinrichs | Tel: +49 (0)162 234 3408 Configuration Manager | Fax: +49 (0)211 47068 111 Capgemini Deutschland | Mail: dirk.heinrichs@capgemini.com Hambornerstra�e 55 | Web: http://www.capgemini.com D-40472 D�sseldorf | ICQ#: 110037733 GPG Public Key C2E467BB | Keyserver: www.keyserver.net