issue newsyslog cmd from perl scrip
David Fleck
david.fleck at mchsi.com
Thu May 13 05:53:42 PDT 2004
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 at mchsi.com
More information about the freebsd-questions
mailing list