Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #format #subprocess #output
ADD COMMENT
Topic
Name
2+4 =