Re: Reading a subprocesses stdout on Windows

2005-11-21 Thread Do Re Mi chel La Si Do
Hi! Let down subprocess, and remember popen4. Here, an example (with CMD, under w-XP) : import os def lcmd(lst=None): a = os.popen4(lst[0]) for i in lst[1:]: if i!='': a[0].write(i+'\r\n') a[0].flush() return a[1].readlines() l=[ 'CMD /K', 'DIR *.c

Re: Reading a subprocesses stdout on Windows

2005-11-21 Thread brolewis
commands is Unix only. This is Windows specific -- http://mail.python.org/mailman/listinfo/python-list

Re: Reading a subprocesses stdout on Windows

2005-11-21 Thread Klaus Alexander Seistrup
BroLewis wrote: > I have been trying for several weeks now to write a program that > allows me to read the stdout of a process that I spawn and once > I receive feedback, act appropriately. Have you looked into the 'commands' module? Cheers, -- Klaus Alexander Seistrup Copenhagen, Denmark ht

Reading a subprocesses stdout on Windows

2005-11-21 Thread brolewis
I have been trying for several weeks now to write a program that allows me to read the stdout of a process that I spawn and once I receive feedback, act appropriately. More specifically, I need to create an SSH tunnel using plink on Windows XP. Once the tunnel is successfully created, then I need