Re: Get Windows-PID for process with known Unix-PID

2008-07-03 Thread Ove Kaaven
Martin Szydlowski wrote: > I know I can get the Windows-PIDs using winedbg->info process but there > is no trace of Unix PIDs there. Also, I need a scriptable way to do > this, best being a small app that gets a Unix PID and prints the > matching Windows PID to console. I don't think there's curre

Get Windows-PID for process with known Unix-PID

2008-07-03 Thread Martin Szydlowski
Hi all, I am starting and stopping some Windows (and also Unix) programs from a shell script. To start, I use fork/exec which gives me the Unix PID. To stop the program I use kill. I have experimented with different signals (TERM, HUP, INT, KILL) and all of them achieve the goal of stopping the pr