From owner-freebsd-questions Thu Aug 6 14:26:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA08658 for freebsd-questions-outgoing; Thu, 6 Aug 1998 14:26:57 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA08495 for ; Thu, 6 Aug 1998 14:26:16 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.5/8.8.8) with SMTP id OAA06087; Thu, 6 Aug 1998 14:25:39 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Thu, 6 Aug 1998 14:25:38 -0700 (PDT) From: Doug White To: Antonio Nati cc: freebsd-questions@FreeBSD.ORG Subject: Re: system ("makemap") error... In-Reply-To: <35C98180.41C67EA6@cisco.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 6 Aug 1998, Antonio Nati wrote: > I'm trying to run the following command within a C program executed as > CGI. > > The program is su'ed to root. > > The line > system ("/usr/sbin/makemap hash /etc/virtusertable < > /etc/virtusertable") > returns error 18688 (no /etc/virtusertable.db created), > while That looks wierd. You're modifying the file you're piping in. Shouldn't that be makemap hash /etc/virtusertable.db < /etc/virtusertable or something like that?? Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message