Author Login
Post Reply
Dragon wrote:
> André Warnier wrote:
>> export@(protected):
>
> 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 "export@(protected)
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: users-unsubscribe@(protected)
" from the digest: users-digest-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)