func RunControl(cmdArgs []string, user string, exitOnFailure bool, pipeInput string) (string, error) {
	var out bytes.Buffer

	if pipeInput != "" {
		in := bytes.Buffer{}
		in.Write([]byte(pipeInput))
		err := RunControlOut(cmdArgs, user, exitOnFailure, &out, &in)
		if err == nil {
			return out.String(), nil
		}
		return "", err
	} else {
		err := RunControlOut(cmdArgs, user, exitOnFailure, &out, nil)
		if err == nil {
			return out.String(), nil
		}
		return "", err
	}
}
// RunControl takes a command and runs it, control is for whether to exit
RunControl takes a command and runs it, control is for whether to exit
// RunControl takes a command and runs it control is for whether to exit
func RunControl(cmdArgs []string, user string, exitOnFailure bool, pipeInput string) (string, error) {
	var out bytes.Buffer
	if pipeInput != "" {
		in := bytes.Buffer{}
		in.Write([]byte(pipeInput))
		err := RunControlOut(cmdArgs, user, exitOnFailure, &out, &in)
		if err == nil {
			return out.String(), nil
		}
		return "", err
	} else {
		err := RunControlOut(cmdArgs, user, exitOnFailure, &out, nil)
		if err == nil {
			return out.String(), nil
		}
		return "", err
	}
}
func RunControl ( cmdArgs [ ] string , user string , exitOnFailure bool , pipeInput string ) ( string , error ) { var out bytes . Buffer if pipeInput != " " { in := bytes . Buffer { } in . Write ( [ ] byte ( pipeInput ) ) err := RunControlOut ( cmdArgs , user , exitOnFailure , & out , & in ) if err == nil { return out . String ( ) , nil } return " " , err } else { err := RunControlOut ( cmdArgs , user , exitOnFailure , & out , nil ) if err == nil { return out . String ( ) , nil } return " " , err } }
RunControl takes a command and runs it, control is for whether to exit
RunControl takes a command and runs it control is for whether to exit