Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Nov 1999 15:23:24 -0500
From:      Greg Lehey <grog@mojave.sitaranetworks.com>
To:        rover@lglobus.ru, freebsd-questions@FreeBSD.ORG
Subject:   Re: Is there correct way for program to read from itself?
Message-ID:  <19991118152324.37840@mojave.sitaranetworks.com>
In-Reply-To: <19991118223426.A62913@fly.lglobus.ru>; from Oleg V. Volkov on Thu, Nov 18, 1999 at 10:34:26PM %2B0300
References:  <19991118065815.B89755@fly.lglobus.ru> <19991118102421.09370@mojave.sitaranetworks.com> <19991118223426.A62913@fly.lglobus.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, 18 November 1999 at 22:34:26 +0300, Oleg V. Volkov wrote:
> On Thu, Nov 18, 1999 at 10:24:21AM -0500, Greg Lehey wrote:
>> On Thursday, 18 November 1999 at  6:58:15 +0300, Oleg V. Volkov wrote:
>>> Hi!
>>> Is there correct way for porgram to read from it's own file?
>> I'm not sure I understand.  What do you mean by "it's own file"?
>> If you mean the object file, sure.  Where's the problem?
>
> I mean this situation:
> I have some program /usr/local/bin/someprog. Is there a way for it
> to read from itself (from /usr/local/bin/someprog).

Sure, that's what I said.  What do you expect to find?

Greg
--
When replying to this message, please copy the original recipients.
For more information, see http://www.lemis.com/questions.html
Finger grog@lemis.com for PGP public key
See complete headers for address and phone numbers


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?19991118152324.37840>