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

Hi All,

Iam having a windows desktop server in my company. In that server more than 2 exe is running. I want to check whether that exe stage (i.e.) is running, idle or got hanged. Is it possible to see that exe got hanged or running. Please help me to know this.

Thanks in advance.

Replies are listed 'Best First'.
Re: checking that exe Stage
by sflitman (Hermit) on Nov 13, 2008 at 04:15 UTC
    Hi, is this really a Perl question? The answer is you can use a free Windows-based utility like Process Explorer from Microsoft's Sysinternals, or with Perl you can write code using a CPAN module like Win32::Process::Info.

    HTH,
    SSF

Re: checking that exe Stage
by GrandFather (Saint) on Nov 13, 2008 at 04:10 UTC

    Defined "got hanged". Is that different than "crashed". Is it different than "in a non-terminating loop"? Is it different than "waiting for a slow resource"?

    Is it a GUI or command line application?


    Perl reduces RSI - it saves typing