Created
April 20, 2018 12:45
-
-
Save crgimenes/6dc808548911eb24751cf64df664a800 to your computer and use it in GitHub Desktop.
simple exec example
This file contains hidden or 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
func execHelper(path, name string, arg ...string) (err error) { | |
cmd := exec.Command(name, arg...) | |
cmd.Dir = path | |
cmd.Stdout = os.Stdout | |
cmd.Stderr = os.Stderr | |
err = cmd.Run() | |
return | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment