Skip to content

Commit

Permalink
Document environment variables, especially MTR_OPTIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptiste Jonglez committed Jul 12, 2014
1 parent e0863d4 commit 9a23df7
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions mtr.8
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,37 @@ of file descriptors.
.TP
.B \-M \fIMARK\fR, \fB\-\-mark \fIMARK
MISSING
.SH ENVIRONMENT
.B mtr
recognizes a few environment variables.
.TP
.B MTR_OPTIONS
This environment variable allows to specify options, as if they were
passed on the command line. It is parsed before reading the actual
command line options, so that options specified in
.B MTR_OPTIONS
are overriden by command-line options.

Example:

.BI MTR_OPTIONS ="-4\ -c\ 1"
.B mtr
.I \-6\ localhost

would send one probe (because of
.I -c\ 1\c
) towards
.B ::1
(because of
.IR -6 ,
which overrides the
.I -4
passed in
.B MTR_OPTIONS\c
).
.TP
.B DISPLAY
Used for the GTK+ frontend.
.SH BUGS
Some modern routers give a lower priority to ICMP ECHO packets than
to other network traffic. Consequently, the reliability of these
Expand Down

0 comments on commit 9a23df7

Please sign in to comment.