From owner-freebsd-questions Thu Sep 17 10:03:59 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA13199 for freebsd-questions-outgoing; Thu, 17 Sep 1998 10:03:59 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from pau-amma.whistle.com (s205m64.whistle.com [207.76.205.64]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA13170 for ; Thu, 17 Sep 1998 10:03:49 -0700 (PDT) (envelope-from dhw@whistle.com) Received: (from dhw@localhost) by pau-amma.whistle.com (8.8.8/8.8.7) id KAA17052 for freebsd-questions@freebsd.org; Thu, 17 Sep 1998 10:03:12 -0700 (PDT) (envelope-from dhw) Date: Thu, 17 Sep 1998 10:03:12 -0700 (PDT) From: David Wolfskill Message-Id: <199809171703.KAA17052@pau-amma.whistle.com> To: freebsd-questions@FreeBSD.ORG Subject: Do we have/want getconf(1)? Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Saw a reference to getconf(1) on one of the other lists to which I'm subscribed. Point was that since it's a command (vs. library function) it's (relatively) easy to use in configuration scripts & the like. I jsut did a quick "apropos" & didn't see a reference to it (as of FreeBSD-2.2.6). I see that a Solaris 2.5 system has a man page for it.... :-) So if there's interest, I might see about cobbling up something that would match the Solaris' documentation; here's an excerpt from the man page: getconf(1) User Commands getconf(1) NAME getconf - get configuration values SYNOPSIS getconf system_var getconf path_var pathname DESCRIPTION In the first synopsis form, the getconf utility will write to the standard output the value of the variable specified by system_var. In the second synopsis form, getconf will write to the stan- dard output the value of the variable specified by path_var for the path specified by pathname. The value of each configuration variable will be determined as if it were obtained by calling the function from which it is defined to be available. The value will reflect condi- tions in the current operating environment. ... Thoughts? [Yes, I know that FreeBSD isn't lacking for projects, and that I am lacking in available time. However, should there be a tendency to have more software use something like getconf(1), it would seem to be useful to have the ability to take advantage of it.] david -- David Wolfskill UNIX System Administrator dhw@whistle.com voice: (650) 577-7158 pager: (650) 371-4621 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message