'run a command on the zone'

def exec_command(self, cmd, in_data=None, sudoable=False):

    super(Connection, self).exec_command(cmd, in_data=in_data, sudoable=sudoable)
    p = self._buffered_exec_command(cmd)
    (stdout, stderr) = p.communicate(in_data)
    return (p.returncode, stdout, stderr)
