I had been through with these packages . They dont inform about the state 
of the processes that are running in the environment.

The states that are supported by the ps in *nix environment are (using the 
s option of ps command):
D    Uninterruptible sleep (usually IO)
R    Running or runnable (on run queue)
S    Interruptible sleep (waiting for an event to complete)
T    Stopped, either by a job control signal or because it is being 
traced.
W    paging (not valid since the 2.6.xx kernel)
X    dead (should never be seen)
Z    Defunct ("zombie") process, terminated but not reaped by its parent.

Can we get this type of information using any of the packages with in perl 
for the windows environment.

Thanks
-Ankit

____________________________________________



Kenneth Ölwing <[EMAIL PROTECTED]> 
08/03/2007 03:59 PM

To
Ankit Mehrotra <[EMAIL PROTECTED]>, 
[email protected]
cc

Subject
Re: Getting the process information on windows !!







>  I am trying to build a script for finding the state of the processes 
> that are running in the windows environment.
> Basically , an attempt  to make some thing synonymous to "ps" command 
> of the *nix for finding the state of processes.
>
> Does any body has any clue about a package which is available for 
> getting this information using Perl ? 
For example Win32[API]::Toolhelp or Win32::Process[::*] should get you 
going...there's probably also a way to query the performance registry 
tree, but that's just masochistic.

And unless you're really interested in do-it-yourself and/or need the 
information in your running
 program, consider just picking up an existing tool, like 'pslist' 
(formerly from Sysinternals, nowadays MS).

HTH,

ken1

ForwardSourceID:NT00011F6A 
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to