Sending <Ctrl-C> to a process opened from popen()

Marc mnations at
Wed Aug 20 19:24:23 CEST 2003

Hi all,

In searching for an answer to this problem I found several solutions
dealing with Unix but none dealing with Windows. Basically I want to
send a ping for an indefinite period of time, stop it at some point,
and then read the results. I open up a ping process using popen().

I found ways to send a break signal using signal module, but for that
I need the PID. All the ways described in the newsgroups for finding
PID were for UNIX.

So how do I find the PID of a spawned process in Windows to send a
break signal?

Thanks ahead of time,

More information about the Python-list mailing list