

def read_process(cmd, args=''):
    (pipein, pipeout) = os.popen4(('%s %s' % (cmd, pipein)))
    try:
        firstline = pipeout.readline()
        if re.search('(not recognized|No such file|not found)', firstline, re.IGNORECASE):
            raise IOError(('%s must be on your system path.' % cmd))
        output = (firstline + pipeout.read())
    finally:
        pipeout.close()
    return output

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/cherrypy/cherrypy/test/modfastcgi.py read_process/VarMisuse@30/40 `args`->`pipein`