Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to pipe using sybprosses run python

ps = subprocess.Popen(('ps', '-A'), stdout=subprocess.PIPE)
output = subprocess.check_output(('grep', 'process_name'), stdin=ps.stdout)
ps.wait()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pipe #sybprosses #run #python
ADD COMMENT
Topic
Name
9+3 =