Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python run command and read output

>>> subprocess.check_output(['ls', '-l'])
b'total 0
-rw-r--r--  1 memyself  staff  0 Mar 14 11:04 files
'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #run #command #read #output
ADD COMMENT
Topic
Name
2+7 =