mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-23 13:18:13 -05:00
23 lines
368 B
Go
23 lines
368 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"os/exec"
|
|
)
|
|
|
|
func main() {
|
|
|
|
}
|
|
|
|
func cmdExec() {
|
|
cmd := exec.Command("ping", "qiongbi.net", "-c2")
|
|
output, err := cmd.Output()
|
|
log.Println("output:", string(output))
|
|
log.Println("err:", err)
|
|
|
|
cmd = exec.Command("ping", "qiongbi", "-c2")
|
|
output, err = cmd.Output()
|
|
log.Println("output:", string(output))
|
|
log.Println("err:", err)
|
|
}
|