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

From: Mav (mluvw47_at_yahoo.com)
Date: 08/03/04


Date: 3 Aug 2004 14:56:01 -0700

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



Relevant Pages

  • Re: How kill process with Windows mobile 5 ?
    ... It is always better to keep first instance, than to kill it and create new ... I retrieve the PID enumerating processes with a Windev instruction too. ... Windows message to the first instance that ask it to close itself. ...
    (microsoft.public.pocketpc.developer)
  • Re: NET::Telnet
    ... When I use NET::Telnet module from windows to telnet SUN solaris8. ... now I can use telnet->cmd('kill -9 $PID') to kill a process. ...
    (comp.lang.perl.modules)
  • Re: killing off a process tree
    ... I would like this to be portable on both linux and windows. ... you can only use 0-9 on windows, and none of them seems to kill a tree. ... The thing is I only have the pid of the parent, ...
    (comp.lang.ruby)
  • NET::Telnet
    ... When I use NET::Telnet module from windows to telnet SUN solaris8. ... now I can use telnet->cmd('kill -9 $PID') to kill a process. ...
    (comp.lang.perl.modules)
  • generally, go lift a frog
    ... excuses the barbers frantically, Pauline won't kill any hollow ... windows. ... Dave weekly creeps them too. ...
    (rec.pets.cats.anecdotes)