From owner-freebsd-hackers Wed Jan 1 18: 1:41 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 963DA37B401 for ; Wed, 1 Jan 2003 18:01:40 -0800 (PST) Received: from bogslab.ucdavis.edu (bogslab.ucdavis.edu [169.237.68.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21B7643EA9 for ; Wed, 1 Jan 2003 18:01:40 -0800 (PST) (envelope-from greg@bogslab.ucdavis.edu) Received: from thistle.bogs.org (thistle.bogs.org [198.137.203.61]) by bogslab.ucdavis.edu (8.9.3/8.9.3) with ESMTP id SAA73813 for ; Wed, 1 Jan 2003 18:01:27 -0800 (PST) (envelope-from greg@bogslab.ucdavis.edu) Received: from thistle.bogs.org (localhost [127.0.0.1]) by thistle.bogs.org (8.11.3/8.11.3) with ESMTP id h0220dx78981 for ; Wed, 1 Jan 2003 18:00:40 -0800 (PST) (envelope-from greg@thistle.bogs.org) Message-Id: <200301020200.h0220dx78981@thistle.bogs.org> To: hackers@FreeBSD.ORG X-To: Chuck Robey X-Sender: owner-freebsd-hackers@FreeBSD.ORG Subject: Re: Reading rc.conf from C programs? In-reply-to: Your message of "Wed, 01 Jan 2003 18:24:40 EST." <20030101181840.P29988-100000@april.chuckr.org> Reply-To: gkshenaut@ucdavis.edu Date: Wed, 01 Jan 2003 18:00:39 -0800 From: Greg Shenaut Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20030101181840.P29988-100000@april.chuckr.org>, Chuck Robey cleopede: >On Thu, 2 Jan 2003, Matthew West wrote: > >> On Wed, Jan 01, 2003 at 01:51:57PM -0800, Tim Kientzle wrote: >> > I'm trying to figure out how to read and use /etc/rc.conf >> > configuration variables from within a C program. One off the wall way: #!/bin/sh set -a . /etc/rc.conf exec /your/program Greg Shenaut To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message