Date: Thu, 13 May 2004 07:53:40 -0500 (CDT) From: David Fleck <david.fleck@mchsi.com> To: JJB <Barbish3@adelphia.net> Cc: "freebsd-questions@FreeBSD. ORG" <freebsd-questions@freebsd.org> Subject: Re: issue newsyslog cmd from perl scrip Message-ID: <20040513074839.X83403@grond.sourballs.org> In-Reply-To: <MIEPLLIBMLEEABPDBIEGGEPBFNAA.Barbish3@adelphia.net> References: <MIEPLLIBMLEEABPDBIEGGEPBFNAA.Barbish3@adelphia.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040513074839.X83403>