I am running a shell command in a python script which installs ruby and rubygems using the subprocess function:
subprocess.call("yum install ruby rubygems -y 2>&1", shell=True)
In this however, the 2>&1
doesn't seem to suppress the output like in a normal bash script. Is there any other way to suppress the output?