def run_command_orig(cmd):
process = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)<EOL>stdout, stderr = process.communicate()<EOL>if process.returncode == <NUM_LIT:0>:<EOL><INDENT>os.killpg(os.getpgid(pro.pid), signal.SIGTERM)<EOL><DEDENT>else:<EOL><INDENT>raise BadRCError("<STR_LIT>" % (process.returncode, cmd, stdout + stderr))<EOL><DEDENT>return stdout<EOL>
No idea how th f to get this to work