Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added a format string example to the man page. While the documentatio…
…n 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.
  • Loading branch information
freshdresch committed Oct 7, 2016
1 parent 5cd24ff commit 5b938e0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions man/bmon.8
Expand Up @@ -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
Expand Down

0 comments on commit 5b938e0

Please sign in to comment.