From owner-freebsd-questions Thu Nov 18 12:54:38 1999 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 02E2715440 for ; Thu, 18 Nov 1999 12:54:36 -0800 (PST) (envelope-from bright@wintelcom.net) Received: from localhost (bright@localhost) by fw.wintelcom.net (8.9.3/8.9.3) with ESMTP id NAA22808; Thu, 18 Nov 1999 13:19:52 -0800 (PST) Date: Thu, 18 Nov 1999 13:19:52 -0800 (PST) From: Alfred Perlstein To: "Oleg V. Volkov" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Is there correct way for program to read from itself? In-Reply-To: <19991118232846.A63288@fly.lglobus.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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