From owner-freebsd-questions Thu Nov 18 12: 7:53 1999 Delivered-To: freebsd-questions@freebsd.org Received: from logisticsoftware.co.nz (logisticsoftware.co.nz [202.37.163.1]) by hub.freebsd.org (Postfix) with ESMTP id 2EFA7154C2 for ; Thu, 18 Nov 1999 12:07:36 -0800 (PST) (envelope-from jonc@logisticsoftware.co.nz) Received: from jonc.logisticsoftware.co.nz (jonc.logisticsoftware.co.nz [10.1.3.1]) by logisticsoftware.co.nz (8.9.3/8.9.3) with ESMTP id JAA01083; Fri, 19 Nov 1999 09:07:29 +1300 (NZDT) Received: (from jonc@localhost) by jonc.logisticsoftware.co.nz (8.9.3/8.9.3) id JAA80059; Fri, 19 Nov 1999 09:07:29 +1300 (NZDT) (envelope-from jonc) Date: Fri, 19 Nov 1999 09:07:29 +1300 From: Jonathan Chen To: "Oleg V. Volkov" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Is there correct way for program to read from itself? Message-ID: <19991119090728.B79916@jonc.logisticsoftware.co.nz> References: <19991118065815.B89755@fly.lglobus.ru> <19991118102421.09370@mojave.sitaranetworks.com> <19991118223426.A62913@fly.lglobus.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <19991118223426.A62913@fly.lglobus.ru>; from rover@lglobus.ru on Thu, Nov 18, 1999 at 10:34:26PM +0300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Nov 18, 1999 at 10:34:26PM +0300, Oleg V. Volkov wrote: > 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). Um. So what's wrong with open(2), read(2) or fopen(3), fread(3)? Jonathan Chen ---------------------------------------------------------------------- Experience is a hard teacher because she gives the test first, the lesson afterwards To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message