[Mono-list] get services list on Linux
Robert Jordan
robertj at gmx.net
Sat Apr 30 07:33:38 EDT 2011
On 30.04.2011 12:59, Tayfur Yilmaz wrote:
> Hİ Everyone
> I have a problem When I want to get a service list on Linux How I solve this
> problem I use System.Management package on Mono bu I don't know some
> spesific name
> Example Code for Windows Code
>
> ManagementClass mcServices=new ManagementClass("Win32_Service");
>
> Can u describe How I get service list on MOno
Linux does not know the notion of "service", so you probably want
to enumerate processes.
See System.Diagnostics.Process.GetProcesses().
Robert
More information about the Mono-list
mailing list