Re: Terminating a subprocess question

2006-03-30 Thread Ernesto
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

Re: Terminating a subprocess question

2006-03-29 Thread Fredrik Lundh
Ernesto wrote: > > > tn = telnetlib.Telnet("localhost",6000) > > > print tn.read_all() > > > # CRASH > > > > that's an unusual error message. are you sure you didn't get a > > traceback? if so, what did it say? > > I was running it directly in a python shell. After the tn.read_all() > call, the

Re: Terminating a subprocess question

2006-03-29 Thread Ernesto
Fredrik Lundh wrote: > Ernesto wrote: > > > Plus, everytime, I tried to use the read_all object, my program crashed > > pretty hard... > > > > tn = telnetlib.Telnet("localhost",6000) > > print tn.read_all() > > # CRASH > > that's an unusual error message. are you sure you didn't get a > traceback

Re: Terminating a subprocess question

2006-03-29 Thread Fredrik Lundh
Ernesto wrote: > Plus, everytime, I tried to use the read_all object, my program crashed > pretty hard... > > tn = telnetlib.Telnet("localhost",6000) > print tn.read_all() > # CRASH that's an unusual error message. are you sure you didn't get a traceback? if so, what did it say? -- http:/

Re: Terminating a subprocess question

2006-03-29 Thread Ernesto
Diez B. Roggisch wrote: > 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 wo

Re: Terminating a subprocess question

2006-03-29 Thread Diez B. Roggisch
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

Terminating a subprocess question

2006-03-29 Thread Ernesto
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 =