// CommandOut Execute a process, wait till completion, and return the stdout
CommandOut Execute a process, wait till completion, and return the stdout
// CommandOut Execute a process wait till completion and return the stdout
func CommandOut(command string, args ...string) (string, error) {
	log.Debugf("Executing %v %v", command, strings.Join(args, " "))
	cmd := exec.Command(command, args...)
	out, err := cmd.Output()
	if out == nil {
		return "", err
	}
	if err != nil {
		log.Debug("Error executing %v %v: %v", command, strings.Join(args, " "), err.Error())
	}
	return string(out), err
}
func CommandOut ( command string , args ... string ) ( string , error ) { log . Debugf ( " " , command , strings . Join ( args , " " ) ) cmd := exec . Command ( command , args ... ) out , err := cmd . Output ( ) if out == nil { return " " , err } if err != nil { log . Debug ( " " , command , strings . Join ( args , " " ) , err . Error ( ) ) } return string ( out ) , err }
CommandOut Execute a process, wait till completion, and return the stdout
CommandOut Execute a process wait till completion and return the stdout