def mrfgen_run_command(cmd, ignore_warnings=False, show_output=False):
    # print '\nRunning command: ' + cmd
    process = subprocess.Popen(shlex.split(cmd), stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
    for line in process.communicate():
        if line:
            if show_output is True or 'error' in line.lower() or ignore_warnings and 'warning' in line.lower():
                print line
Disconnect from Riemann.
dataset/ETHPy150Open nasa-gibs/onearth/src/test/oe_test_utils.py/mrfgen_run_command--crossover with--dataset/ETHPy150Open BrightcoveOS/Diamond/src/diamond/handler/riemann.py/RiemannHandler._close