7 lines
183 B
Python
7 lines
183 B
Python
import subprocess
|
|
|
|
|
|
def call(command):
|
|
shell = subprocess.Popen(command, stdout=subprocess.PIPE, shell=True)
|
|
output, error = shell.communicate()
|
|
return str(output), error
|