yvs2014
yvs2014
It looks like mtr got stuck on stdin in your Go program, so just open stdin and keep it opened, and you will get something in output (stdout or stderr)
@rewolff not totally, I suppose /dev/null stdin is already present in that go code it can be emulated with `mtr -p -c 10 www.qq.com
@billcoding try this ``` package main import ( "bufio" "fmt" "os" "os/exec" ) func main() { cmd := exec.Command("mtr", "-p", "-c", "10", "www.qq.com") stdin, err := cmd.StdinPipe(); if err !=...
@billcoding > why should you care about the stdin pipe? mtr is an interactive program, it tests stdin for input, for example if you press 'q' mtr quits, and so...
@rewolf I didn't get that far, it's for golang pandits, easier to open stdin and forget about it
@rewolff if something is wrong with stdin, there are two options for split mode as far as I can see: 1) print an error and exit 2) automatically switch to...
Sorry, my typo, fixed
maybe it's not a bad idea to add more sources of IP info, there is a lot of other data sources that we may use for that, some of them...
it looks like a hostname description exceeds the limit of 80 bytes (defined in "report.c"), so the fast fix could be ``` diff --git a/ui/report.c b/ui/report.c index c6add07..0de9268 100644 ---...
The part about "what is >" RTT is greater than the next-to-last value on 8-step log-scale [min..max], ~0.77max. It may look like this Scale: . less than 28ms >...