McBooCzech wrote:
> This is easy. Subprocess function "call" looks:
> returncode = subprocess.call(["/root/dex/dex","/dev/ttyS0",
> "blabla.txt"])
> and it runs smoothly.
> 
> The problem starts when I am trying to add 1>/dev/null 2>/dev/null
> parameters to suppres output sendings.

from subprocess import call, STDOUT
call(["command", "arg", "arg"], stdout=open("/dev/null", "w"),
                                stderr=STDOUT)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to