diff options
author | 2011-07-12 11:28:31 +0000 | |
---|---|---|
committer | 2011-07-12 11:28:31 +0000 | |
commit | 2cb6e4c655b9a44ab0d143682312322f07ccea5f (patch) | |
tree | 636d777b8dbc08831d138c7107437a9fe7192e43 /usr.sbin/syslogc/syslogc.8 | |
parent | be ways more verbose with -a (diff) | |
download | wireguard-openbsd-2cb6e4c655b9a44ab0d143682312322f07ccea5f.tar.xz wireguard-openbsd-2cb6e4c655b9a44ab0d143682312322f07ccea5f.zip |
Allow syslogc -n XX to display less than the whole file, and -n XX -f to
display more/less than the default of 10. ok mpf@ jmc@
Diffstat (limited to 'usr.sbin/syslogc/syslogc.8')
-rw-r--r-- | usr.sbin/syslogc/syslogc.8 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/syslogc/syslogc.8 b/usr.sbin/syslogc/syslogc.8 index fbf525f717b..821aef01661 100644 --- a/usr.sbin/syslogc/syslogc.8 +++ b/usr.sbin/syslogc/syslogc.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: syslogc.8,v 1.8 2008/09/10 22:17:33 sobrado Exp $ +.\" $OpenBSD: syslogc.8,v 1.9 2011/07/12 11:28:31 sthen Exp $ .\" .\" Copyright (c) 2004 Damien Miller .\" @@ -13,7 +13,7 @@ .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -.Dd $Mdocdate: September 10 2008 $ +.Dd $Mdocdate: July 12 2011 $ .Dt SYSLOGC 8 .Os .Sh NAME @@ -22,6 +22,7 @@ .Sh SYNOPSIS .Nm syslogc .Op Fl Ccfo +.Op Fl n Ar lines .Op Fl s Ar reporting_socket .Ar logname .Nm syslogc @@ -48,7 +49,7 @@ option to .Pp By default, .Nm -will query the specified log and return it to standard output. +will query the specified log and return all entries to standard output. .Pp The options are as follows: .Bl -tag -width Ds @@ -62,6 +63,8 @@ Like the .Fl f option in .Xr tail 1 . +.It Fl n Ar lines +Print the specified number of lines from the end of the buffer. .It Fl o Check whether the specified log has overflowed. If the log has overflowed, then a message will be printed to |