Re: Catch pid for a process that created

From: lxrocks (lxrocks_at_hotmail.com)
Date: 08/12/04


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



Relevant Pages

  • Re: OE Generates c0000005 (access violation) How to correct?
    ... You really should visit the Windows Update page to update your system to SP2 ... >> George Hester ... The PID changes so using ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: CPU pegs near 100%, mysterious log entry
    ... For some mysterious reason Windows has been busy resynching the mirror drive. ... This is Windows RAID (I decided I could not trust the motherboard's built in Raid after a few days of trying the machine way back when. ... Now, I don't know whether it is resynching because of the hard shutdown, or because of something that happened before I had to do a hard reboot. ... I had tried the tasklist /svc for the svchost.exe PID but it wast not very helpful. ...
    (microsoft.public.windows.server.sbs)
  • Re: Windows XP WMI Reinstall
    ... c:\>tlist -s | findstr /i winmgmt ... This posting is provided "AS IS" with no warranties, and confers no rights. ... > Facility: Windows ... I couldn't get a PID for the winmgmts process because it's not ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Unable to Copy and Paste
    ... Ramesh, Microsoft MVP ... Windows XP Troubleshooting ... sort using the PID column so that you can locate the process easily. ...
    (microsoft.public.windowsxp.help_and_support)
  • Heavy Disk Acvtivity when Restarting/Booting
    ... I am having an ongoing performance problem with Windows XP Pro on my 1.3GHz, ... SpyBot scan, defrag, disk clean up, etc. ... "PID eq " where (pid number is the PID number of an instance of ...
    (microsoft.public.windowsxp.basics)