subprocess.Popen - terminate



I am using subprocess.Popen to execute an executable, how can I
terminate that process when I want?

for example (on windows)

p = subprocess.Popen("calc.exe")
.....

now say I want to kill calc.exe ...how can I do it? By the way, I am
not looking for a windows only solution I need something that is
universal (mac, *nix, etc)

thanks

.



Relevant Pages

  • Windows permissions was Re: Its COBOL, Jim, but not as we know it...
    ... Windows is highly configurable; the fact that people ignore this and run ... One of the problems is also figuring out what security features ... Microsoft email can automatically execute an attachment. ... Here's a transcript from a Linux forum 4 years ago where at least one user ...
    (comp.lang.cobol)
  • Re: Its COBOL, Jim, but not as we know it...
    ... Windows is highly configurable; the fact that people ignore this and run ... It is _you_ that has improved the security, ... Microsoft email can automatically execute an attachment. ... Here's a transcript from a Linux forum 4 years ago where at least one user ...
    (comp.lang.cobol)
  • Re: [opensuse] Who said Linux doesnot get Virus infections
    ... you can execute a screen saver if you test it. ... They're under the general "viruses" tag. ... A Linux system being used to protect Windows ...
    (SuSE)
  • Re: ?? Windows Registry corrupted
    ... Enquire, plan and execute ... including System Restore. ... This PC was running Windows XP Pro. ... It appeared as if it would repair the operating system, ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Trusting and testing unknown (or unfamiliar) executables
    ... Finally you mention completely bypassing the windows kernel by using ... assembler instructions at ring zero... ... > including any file deletion or modification, and any attempt to execute ... > Ring0 assembly code which bypasses the usual Windows protection traps. ...
    (alt.comp.lang.borland-delphi)