On 9/18/07, Somu <[EMAIL PROTECTED]> wrote:
> How do i find out the process id of any process.When we see the task
> manager in Windows, we can see the programs running in the PC. Is
> there any way to know the same with perl?

This is system dependent.  For MS Windows machines try Win32::Process::Info*.

snip
> Does process id of a program
> change each time the program is run?
snip

This is theoretically system dependent, but the answer is "yes" on all
OSes I am aware of (because the alternative would be a very bad idea).

* http://search.cpan.org/dist/Win32-Process-Info/lib/Win32/Process/Info.pm

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to