Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python subprocess stdout to dev null

import os
import subprocess

retcode = subprocess.call(['echo', 'foo'], 
    stdout=subprocess.DEVNULL,
    stderr=subprocess.STDOUT)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #subprocess #stdout #dev #null
ADD COMMENT
Topic
Name
3+6 =