Answers for "python just print subprocess output"

0

subprocess.check_output python

import subprocess
py2output = subprocess.check_output(['python', 'py2.py', '-i', 'test.txt'])
print('py2 said:', py2output)
Posted by: Guest on March-01-2021
0

python format subprocess output

import subprocess

output = subprocess.check_output("cat /etc/os-release", shell=True)
output = output.decode("utf-8")
print("Version info: ",output)
Posted by: Guest on September-26-2020

Code answers related to "python just print subprocess output"

Python Answers by Framework

Browse Popular Code Answers by Language