From owner-freebsd-questions Wed Feb 13 11:58: 6 2002 Delivered-To: freebsd-questions@freebsd.org Received: from marlo.eagle.ca (marlo.eagle.ca [209.167.16.10]) by hub.freebsd.org (Postfix) with ESMTP id 7ABBB37B400 for ; Wed, 13 Feb 2002 11:58:04 -0800 (PST) Received: from Bob (staff.eagle.ca [209.167.16.15]) by marlo.eagle.ca (8.11.3/8.11.3) with ESMTP id g1DJtd127111; Wed, 13 Feb 2002 14:55:39 -0500 (EST) (envelope-from freymann@scaryg.shacknet.nu) From: freymann@scaryg.shacknet.nu To: Jim Sander , freebsd-questions@FreeBSD.ORG Date: Wed, 13 Feb 2002 14:58:07 -0500 MIME-Version: 1.0 Subject: Re: /etc/mail/Makefile and virtusertable.db Message-ID: <3C6A7EFF.10216.BAE65BE@localhost> References: <200202131532.g1DFWKl02432@joeandlane.com> In-reply-to: X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 13 Feb 2002 at 14:25, Jim Sander wrote: > I've got a perl script to do that, looking roughly like this: > > rename "temp.virtusertable", "/etc/mail/virtusertable"; > system("cd /etc/mail; make"); You know, you could just put `/usr/sbin/makemap hash virtusertable.db < virtusertable` (that's a leading/trailing back-quote) and skip the system call. Make sure you include the full paths to everything, just to keep it easily readable I left it as it was. The reason I suggest this is... you say it works great manually but not through your script. You did say you've tried to script this several different ways so perhaps you've tried this already.. dunno. gf To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message