Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 May 2004 23:04:21 -0400
From:      "JJB" <Barbish3@adelphia.net>
To:        "freebsd-questions@FreeBSD. ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   newsyslog command in an script
Message-ID:  <MIEPLLIBMLEEABPDBIEGIENMFNAA.Barbish3@adelphia.net>

next in thread | raw e-mail | index | archive | help
In an csh script I want to issue newsyslog /var/log/security. I need
feedback from the newsyslog command in the form of an script
testable return code / exit code so I can determine if the specified
log met the rotate trigger for that file as defined in the
newsyslog.conf file and the file was rotated or not.  I have tested
and know that  newsyslog /var/log/security does check the
newsyslog.config for an entry of /var/log/security and checks the
size/time/date trigger to determine if file needs rotating.

So my question boils down to does the newsyslog command  issue an
return code I can check in an script to see if the log was rotated
or not? If so what would the csh script command look like to perform
the test?

Thanks
Joe



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MIEPLLIBMLEEABPDBIEGIENMFNAA.Barbish3>