Suppressing output in python subprocess call [duplicate]
You can use the stdout= and stderr= parameters to subprocess.call() to direct stdout or stderr to a file descriptor of your choice. So maybe something like this: import os devnull = open(os.devnull, ‘w’) subprocess.call(shlex.split( ‘/usr/local/itms/bin/iTMSTransporter -m lookupMetadata ‘ ‘-apple_id %s -destination %s’ % (self,apple_id, self.destination)), stdout=devnull, stderr=devnull) Using subprocess.PIPE, if you’re not reading from the … Read more