-
-
Save wilkice/1b66013db0230a4190c59b6383fc9616 to your computer and use it in GitHub Desktop.
[go execute command]
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
package main | |
import ( | |
"log" | |
"os/exec" | |
) | |
func main() { | |
cmd := exec.Command("aaa", "-za") | |
output, err := cmd.CombinedOutput() | |
// don't use cmd.Run() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment