Added a format string example to the man page. While the documentation is clear, it is nice to see an example to get started. Single quotes are used to prevent the shell from running our bmon patterns as commands, and to prevent it from doing wildcard expansion for the interface string.
This commit is contained in:
parent
5cd24ffd6a
commit
5b938e05c7
@ -220,6 +220,14 @@ and eth1:
|
||||
.RS 4
|
||||
\fBbmon \-p eth0,eth1 \-o curses\fP
|
||||
.RE
|
||||
.PP
|
||||
To run bmon in format mode, monitoring any eth* interfaces, with a specified
|
||||
format string:
|
||||
.PP
|
||||
.RS 4
|
||||
\fBbmon \-p \(aqeth*\(aq \-o format:fmt=\(aq$(element:name) $(attr:rxrate:packets)\en\(aq\fP
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SH "FILES"
|
||||
/etc/bmon.conf
|
||||
|
Loading…
x
Reference in New Issue
Block a user