Dragon wrote:
André Warnier wrote:
[EMAIL PROTECTED] wrote:

You are of course assuming that the OP is using an OS that is Unix-like that supports these commands (Linux, BSD, OSX, Solaris, etc.).

All bets are off if the OP is using Windows. That would require digging into the Windows SDK to enumerate the system task list.

Dragon

You mean that there are actually people working under Windows and using Apache instead of IIS ? My, my..

But then, using perl, it would be a piece of cake anyway.
e.g.
use Win32::Process::List;
 my $P = Win32::Process::List->new();        constructor
my %list = $P->GetProcesses(); returns the hashes with PID and process name
..and grep() from there.
But the OP unfortunately wants C or Python, and there I'm out of my depth.

Anyway, there exists a "ps.exe" command somewhere on the MS site buried into some utilities package download. It can be used in much the same way as the Unix/Linux ps command. If "[EMAIL PROTECTED]" is interested and MS does not object, I could send him a copy.


André
Veni, vidi, vici.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to