mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-06 05:30:05 +00:00
Ping test get output
This commit is contained in:
13
cmd/ping/main.go
Normal file
13
cmd/ping/main.go
Normal file
@@ -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)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user