Sending Cntrl-C ??

gamename namesagame-usenet at yahoo.com
Tue Apr 29 18:06:10 EDT 2008


> import os
> import signal
> import subprocess
>
> popen = subprocess(...)
> os.kill(popen.pid, signal.SIGINT)
>
> Or with Python 2.6+:
>
> popen.send_signal(signal.SIGINT)

Thanks, Christian.  Would that work on win32 as well?

-T



More information about the Python-list mailing list