Hi all, I am trying to use subprocess module on Linux/Python-2.4.1, but I can't dig throught.
I need to call executable which needs two parameters to be ginven (the serial port and the file name). It looks like /root/dex/dex /dev/ttyS0 blabla.txt in the shell. 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. In the Shell it looks like: /root/dex/dex /dev/ttyS0 blabla.txt 1>/dev/null 2>/dev/null I am not able to find the propper "call" syntax to do this. Any suggestions? Thanks a lot. Petr -- http://mail.python.org/mailman/listinfo/python-list