Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I've some problems on perl process... Let say I know there is a process running (not invoked by Perl) ... how can I obtain it by Perl Script? Thanks.

Replies are listed 'Best First'.
RE: How to get PID
by anithri (Beadle) on Feb 15, 2000 at 01:18 UTC
    in a unix-like machine you can do something like... @processlist = `ps -ef` and parse it out. If however you are taling windows... I have no idea.
      On Windows, you can also execute an external command that would return a list of processes. One nice utility would be BeyondLogic's process.exe, available from http://www.beyondlogic.org/solutions/processutil/processutil.htm Hope that helps, Dan Dascalescu