Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Sep 1999 14:40:20 -0500 (CDT)
From:      Don Read <dread@texas.net>
To:        "Oleg V. Volkov" <rover@lglobus.ru>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   RE: How to find absolute name of running binary?
Message-ID:  <XFMail.990921144020.dread@texas.net>
In-Reply-To: <19990921020955.C16138@fly.lglobus.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

On 20-Sep-99 Oleg V. Volkov wrote:
> Hi!
> 
> Well subject says it all. How could i find absolute name of my running
> binary from inside it? References to man or C examples welcome.
> 
> Please CC: replys to me - i'm not on list.
> 

You can't.
The best you can hope for is to look at args[0]; and hope the calling
process set it correctly.

Regards,
---
Don Read                                 dread@calcasieu.com
EDP Manager                                  dread@texas.net
Calcasieu Lumber Co.                               Austin TX
-- the Y2K bug is not a problem. W2K however ...


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.990921144020.dread>