retcode = subprocess.call(['echo', 'foo'], stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
-
https://stackoverflow.com/questions/11269575/how-to-hide-output-of-subprocess-in-python-2-7tee : pour output à la fois sur stdout et dans un fichier
-
http://www.skorks.com/2009/09/using-bash-to-output-to-screen-and-file-at-the-same-time/