Launch Windows command window....

jay graves jaywgraves at gmail.com
Fri Feb 3 17:26:08 EST 2006


Ernesto wrote:
> subprocess.Popen("telnet.exe -f C:\Folder\output.txt localhost 6000")
> is improved, but still doesn't launch a SEPERATE window...

This should work but only lightly tested.
subprocess.Popen("start telnet.exe -f C:\Folder\output.txt localhost
6000",shell=True)

You don't say what you are trying to do but if you are trying to drive
telnet maybe you want the pexpect module.
http://pexpect.sourceforge.net/

I've never had the need to use it myself so I can't offer any other
advice.  

...
jay graves




More information about the Python-list mailing list