arg := "curl -I \"www.baidu.com\""

cmd := exec.Command("/bin/sh", "-c", arg)

out, err := cmd.Output()

if err != nil {

fmt.Println(err)

}

fmt.Println(string(out))