From owner-freebsd-questions@FreeBSD.ORG Thu May 13 05:53:42 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF5F716A4CE for ; Thu, 13 May 2004 05:53:42 -0700 (PDT) Received: from sccmmhc91.asp.att.net (sccmmhc91.asp.att.net [204.127.203.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B9F143D5F for ; Thu, 13 May 2004 05:53:42 -0700 (PDT) (envelope-from david.fleck@mchsi.com) Received: from grond (12-216-14-105.client.mchsi.com[12.216.14.105]) by sccmmhc91.asp.att.net (sccmmhc91) with SMTP id <20040513125341m9100clv3ee>; Thu, 13 May 2004 12:53:41 +0000 Date: Thu, 13 May 2004 07:53:40 -0500 (CDT) From: David Fleck Sender: dcf@grond.sourballs.org To: JJB In-Reply-To: Message-ID: <20040513074839.X83403@grond.sourballs.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: "freebsd-questions@FreeBSD. ORG" Subject: Re: issue newsyslog cmd from perl scrip X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 May 2004 12:53:42 -0000 On Wed, 12 May 2004, JJB wrote: [ ...snip...]> > # issue command and capture verbose o/p to $line > newsyslog "-v $logfile" > $line; # this statement gets error [...snip...] It would be helpful to see exactly what the error is, but I would guess it's that 'newsyslog' is not a perl function. To run another executable from within a perl script, you need to do something like: system("newsyslog \"-v $logfile\" > $line"); there are, of course, other ways to do it as well. -- David Fleck david.fleck@mchsi.com