Terminating a subprocess question

Diez B. Roggisch deets at nospam.web.de
Wed Mar 29 11:56:23 EST 2006


Ernesto wrote:

> I'm opening a telnet session with the subprocess call below.  I then
> wait ten seconds and attempt to terminate the telnet window I created.
> Unfortuantely, the telnet window remains after the 'TerminateProcess"
> call below.  This software works great for opening an executable
> directly (i.e.  Handle = subprocess.Popen("myProgram.exe), but here I'm
> using the Windows 'start' command inside, which I think has an effect.
> 
> 
> Is there another way I can force termination of the telnet session I
> create ?

Maybe using the module telnetlib instead? 

Diez



More information about the Python-list mailing list