Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python subprocess.run output

import subprocess
output = subprocess.run(["cat", "data.txt"], capture_output=True)
print (output.stdout)
Source by linuxhint.com #
 
PREVIOUS NEXT
Tagged: #python #output
ADD COMMENT
Topic
Name
9+1 =