Re: Catch pid for a process that created
From: lxrocks (lxrocks_at_hotmail.com)
Date: 08/12/04
- Next message: Kevin Joseph: "Perl - Parse UNC Path in a string variable"
- Previous message: Jim Gibson: "Re: Need some hints on speeding up"
- In reply to: Mav: "Catch pid for a process that created"
- Next in thread: Mav: "Re: Catch pid for a process that created"
- Reply: Mav: "Re: Catch pid for a process that created"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 12 Aug 2004 08:21:36 GMT
Mav wrote:
> Hi,
> I am writing a perl script on windows that try to get the pid for a
> program that created another processes.
>
> .....
>
> @args = ("\"$devPath\\devenv.com\" ..\\Solution\\My.sln /build
> Debug");
> $pid = open my $proc, "@args |";
> ...
>
>
> the $pid will give me the pid for devenv.com; However, the devenv.com
> actually created another process name devenv.exe, is that a way I can
> get that pid.
>
> Thanks,
> Mav
Don't know much about windows, but try the Win32::ToolHelp module.
It can provide process information.
http://search.cpan.org/~prantl/Win32-ToolHelp-0.2/ToolHelp.pm
- Next message: Kevin Joseph: "Perl - Parse UNC Path in a string variable"
- Previous message: Jim Gibson: "Re: Need some hints on speeding up"
- In reply to: Mav: "Catch pid for a process that created"
- Next in thread: Mav: "Re: Catch pid for a process that created"
- Reply: Mav: "Re: Catch pid for a process that created"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|