func (c *Cmd) CombinedOutput() ([]byte, error) {
	if c.Stdout != nil {
		return nil, errors.New("ssh: Stdout already set")
	}
	if c.Stderr != nil {
		return nil, errors.New("ssh: Stderr already set")
	}
	var b bytes.Buffer
	c.Stdout = &b
	c.Stderr = &b
	err := c.Run()
	return b.Bytes(), err
}
// CombinedOutput runs the command, and returns the
// combined stdout/stderr output and result of
// executing the command.
CombinedOutput runs the command, and returns the
combined stdout/stderr output and result of
executing the command.
// CombinedOutput runs the command and returns the // combined stdout / stderr output and result of // executing the command .
func (c *Cmd) CombinedOutput() ([]byte, error) {
	if c.Stdout != nil {
		return nil, errors.New("ssh: Stdout already set")
	}
	if c.Stderr != nil {
		return nil, errors.New("ssh: Stderr already set")
	}
	var b bytes.Buffer
	c.Stdout = &b
	c.Stderr = &b
	err := c.Run()
	return b.Bytes(), err
}
func ( c * Cmd ) CombinedOutput ( ) ( [ ] byte , error ) { if c . Stdout != nil { return nil , errors . New ( " " ) } if c . Stderr != nil { return nil , errors . New ( " " ) } var b bytes . Buffer c . Stdout = & b c . Stderr = & b err := c . Run ( ) return b . Bytes ( ) , err }
CombinedOutput runs the command, and returns the
combined stdout/stderr output and result of
executing the command.
CombinedOutput runs the command and returns the combined stdout / stderr output and result of executing the command .