Example #1
0
func RunSilentCommand(command string, args []string) {
	out, err := exec.Command(command, args...).Output()
	res := models.Response{Result: string(out), Status: 200}
	if err != nil {
		res.Error = err.Error()
	}
	res.Log()
}