Created
February 1, 2019 11:06
-
-
Save ermacv/30d33a122531ad1bb9d4f37f562183bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"os" | |
"os/exec" | |
) | |
func main() { | |
cmd := exec.Command("ping", "-c8", "www.google.com") | |
cmd.Stdout = os.Stdout | |
err := cmd.Run() | |
if err != nil { | |
log.Fatal(err) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment