From owner-freebsd-hackers Fri May 24 19:07:49 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id TAA28271 for hackers-outgoing; Fri, 24 May 1996 19:07:49 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id TAA28263 for ; Fri, 24 May 1996 19:07:47 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id TAA02417; Fri, 24 May 1996 19:04:15 -0700 From: Terry Lambert Message-Id: <199605250204.TAA02417@phaeton.artisoft.com> Subject: Re: Adduser program in C To: jkh@time.cdrom.com (Jordan K. Hubbard) Date: Fri, 24 May 1996 19:04:15 -0700 (MST) Cc: lithium@cia-g.com, freebsd-hackers@FreeBSD.org In-Reply-To: <9192.832980053@time.cdrom.com> from "Jordan K. Hubbard" at May 24, 96 04:20:53 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > > I would like to heavily modify an adduser program, however the > > distribution one in FreeBSD is in Perl. I don't do Perl. I would like > > to write one in C but was wondering if anyone has done this before? > > C is fine too.. Look at the dialog(3) library for a semi-reasonable > way of making requests of the user. The dialog library is a bogus layer for abstracting this type of thing. You want a command line tool that can be used by a generic UI using a dialog library or a GUI making Motif calls, etc., to avoid code duplication. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.