Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get output

>out = subprocess.Popen(['wc', '-l', 'my_text_file.txt'], 
           stdout=subprocess.PIPE, 
           stderr=subprocess.STDOUT)
Source by cmdlinetips.com #
 
PREVIOUS NEXT
Tagged: #python #output
ADD COMMENT
Topic
Name
4+4 =