On a unix system, you can redirect stderr and stdout to /dev/null as part of the command itself.
os.system(cmd + "> /dev/null 2>&1")
More Related Contents:
- Python: How to get stdout after running os.system? [duplicate]
- Disable output buffering
- How to set sys.stdout encoding in Python 3?
- How to capture stdout output from a Python function call?
- How to open every file in a folder
- catching stdout in realtime from subprocess
- Silence the stdout of a function in Python without trashing sys.stdout and restoring each function call
- Displaying subprocess output to stdout and redirecting it
- The difference between sys.stdout.write and print?
- Redirecting stdout and stderr to a PyQt4 QTextEdit from a secondary thread
- Intercepting stdout of a subprocess while it is running
- subprocess readline hangs waiting for EOF
- Python read from subprocess stdout and stderr separately while preserving order
- How to redirect stdout and stderr to logger in Python
- Running an interactive command from within Python
- Command executed with Paramiko does not produce any output
- Print to the same line and not a new line?
- How do I check if stdin has some data?
- Suppress stdout / stderr print from Python functions
- How to redirect stdout to a Tkinter Text widget
- How can I redirect print output of a function in python [duplicate]
- Return value of x = os.system(..) [duplicate]
- Force another program’s standard output to be unbuffered using Python
- Integer File Descriptor “0” in open()
- Piping output of subprocess.Popen to files
- return value from one python script to another
- How can I capture the stdout output of a child process?
- Python subprocess output to stdout
- multiprocessing: How can I ʀᴇʟɪᴀʙʟʏ redirect stdout from a child process?
- Redirect Python ‘print’ output to Logger