def get_output(command):
p = Popen(command, shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE)<EOL>p.stdin.close()<EOL>p.stderr.close()<EOL>line=p.stdout.readline().strip()<EOL>p.wait()<EOL>if type(line).__name__ == "<STR_LIT>":<EOL><INDENT>line = str(line, encoding="<STR_LIT:utf-8>")<EOL><DEDENT>return line, p.returncode<EOL>
Returns the output of a command returning a single line of output.