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

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Hi, there
   I have a perl script on windows that try to lanuch a
command(;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, but not devenv.exe, and when
I kill, devenv.exe will be zombie.

Here is my code:

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

Any idea?

Site Timeline