Catch pid for a process that created

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

  • Next message: Christopher Shatto: "Re: send username/password via perl script instead of using browser"
    Date: 2 Aug 2004 16:30:04 -0700
    
    

    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


  • Next message: Christopher Shatto: "Re: send username/password via perl script instead of using browser"

    Relevant Pages

    • Re: Fedora server consuming all memory and grinding to a halt
      ... an output format that showed PID, VM size, and process start time. ... Then I whipped out a perl script to analyze the logs, ... Of course, that just found what was leaking, it didn't find out ...
      (Fedora)
    • VBA Shell function doesnt work
      ... The Shell in VBA in Office X always returns PID 0 and doesn't execute ... I want to run a perl script. ... code works on Windows XP. ... VBA expects Macintosh-style paths using colons, in my case, something ...
      (microsoft.public.mac.office.excel)
    • Re: Catch pid for a process that created
      ... > Mav wrote: ... >> I am writing a perl script on windows that try to get the pid for a ... >> get that pid. ...
      (comp.lang.perl)
    • how to kill a spawned process when it hangs
      ... I run a perl script in which I call an interactive process which is ... # started via these back-tics. ... # How to capture pid of the process started from within those ...
      (comp.unix.shell)
    • Re: PID of Service
      ... Given the name of a Win32 service, is there a way to find out its PID from a ... Perl script? ... Ing Ferry Bolhar ...
      (comp.lang.perl.misc)