When using the python sh module, there are outputs from the module itself, like the status of command it is running, etc. Is it possible to suppress that? I am not referring to the output of the command being executed, but what the module prints when it executes.
For example, if the script contains:
import pip
pip.main(['install', "sh"])
import sh
cmdArgs = ["-lrt","/tmp"]
sh.ls(cmdArgs)
When the script is run, the following is output:
<Command '/bin/ls -lrt /tmp'>: starting process
<Command '/bin/ls -lrt /tmp', pid 22235>: process started
<Command '/bin/ls -lrt /tmp', pid 22235>: process completed
I would prefer no output. I was unable to find anything in http://amoffat.github.io/sh/