diff --git a/cmd/ping/main.go b/cmd/ping/main.go new file mode 100644 index 0000000..80b0eab --- /dev/null +++ b/cmd/ping/main.go @@ -0,0 +1,13 @@ +package main + +import ( + "log" + "os/exec" +) + +func main() { + cmd := exec.Command("ping", "qiongbi.net", "-c5") + output, err := cmd.Output() + log.Println("output:", string(output)) + log.Println("err:", err) +}