Is that a way to get the child pid that start by an application?

M

Mav

Hi, there
I have a perl script on windows that try to lanuch a
command(devenv.com);However, the process still start an process
(devenv.exe) that I am trying to get the pid, so I can kill it later.

I able to get the pid for devenv.com, but not devenv.exe, and when
I kill devenv.com, devenv.exe will be zombie.

Here is my code:

....
@args = ("\"$devPath\\devenv.com\" ..\\Solution\\my.sln /build
Debug");
$pid = open my $proc, "@args |"; #Able to get the pid for devenv.com
....

Any idea?
Thanks,
Mav
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top