def shellne(command):
    """
        Runs 'commands' on the underlying shell; any stderr is echo'd to the
        console.

        Raises a RuntimeException on any shell exec errors.
    """

    child = os.popen(command)
    data = child.read()
    err = child.close()
    if err:
        raise RuntimeError('%s failed w/ exit code %d' % (command, err))
    return data
def shellne ( command ) : child = os . popen ( command ) data = child . read ( ) err = child . close ( ) if err : raise RuntimeError ( '%s failed w/ exit code %d' % ( command , err ) ) return data
Runs 'commands' on the underlying shell; any stderr is echo'd to the
        console.

        Raises a RuntimeException on any shell exec errors.