I am trying out mtr (My traceroute) for educational purposes. However it is quite disturbing that I can't manage it to print results to stdout directly.
Per default it opens a GTK-Window where it prints its results to. If I use the option -t I can force it to use ncurses in terminal.
But this isn't helpful at all.
I can't redirect the stuff into a file or pipe (well I can but there is a lot of disturbing stuff like
ESC[?1049hfrom ncurses or so).When I define cycles e.g. with
-r -c 1the result immediately disappears from the prompt after the run is through.If I stop the program the results also disappears.
Is there any way to use this program "the UNIX-way"?
I just want the result out to stdout, no fancy extras!
I have installed the package mtr on a current debian wheezy.
$ mtr --version
mtr 0.82