'Send a command, wait for output, and return it.
cmd: string'

def cmd(self, *args, **kwargs):

    verbose = kwargs.get('verbose', False)
    log = (info if verbose else debug)
    log(('***    %s    :    %s\n' % (self.name, args)))
    if self.shell:
        self.sendCmd(*args, **kwargs)
        return self.waitOutput(verbose)
    else:
        warn(('(%s    exited    -    ignoring    cmd%s)\n' % (self, args)))
