Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Nov 1999 13:19:52 -0800 (PST)
From:      Alfred Perlstein <bright@wintelcom.net>
To:        "Oleg V. Volkov" <rover@lglobus.ru>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Is there correct way for program to read from itself?
Message-ID:  <Pine.BSF.4.05.9911181319120.12797-100000@fw.wintelcom.net>
In-Reply-To: <19991118232846.A63288@fly.lglobus.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 18 Nov 1999, Oleg V. Volkov wrote:

> On Thu, Nov 18, 1999 at 03:23:24PM -0500, Greg Lehey wrote:
> > >>> 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?
> 
> Could you give me short example?

man 5 procfs

-Alfred



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?Pine.BSF.4.05.9911181319120.12797-100000>