dhathsato
asked on
Start/Stop Services with VB.NET
I am working on a web site that will connect to networked machines and grab all services on the machine. The user will then be able to start/stop services. I know how to get all services for a Windows machine, but I have Linux and Solaris machines also, who do I get these? I am stuck and need to get this portion completed.
I am using VB.NET
I am using VB.NET
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Would you happen to have code examples of completing the task(s) you mention?
%ps -ugax
will probably give you everything you need.
As far as killing those processes, you use the kill command. You can send the HANGUP signal with SIGHUP or -9
%kill -9 23432
will kill process number 23432.