def METHOD_NAME(self, cmdline):
    try:
        proc = subprocess.Popen(cmdline.split(), stdout=subprocess.PIPE,
                                stderr=subprocess.STDOUT)
        stdout = proc.communicate()[0]
        proc.wait()
        result = stdout.decode('utf-8').rstrip('\n')
    except OSError:
        result = None
    return result