def waitResultOfCmdProcess(process):
    output, error = process.communicate()
    exitcode = process.wait()
    return (exitcode, output, error)
check process result, return exitcode, output, error message together
dataset/ETHPy150Open harryliu/edwin/edwinAgent/common/os_helper.py/waitResultOfCmdProcess