Listing services
GD
d1945@sbcglobal.net
Fri Mar 4 22:31:00 GMT 2005
Al Slater wrote:
> Colin JN Breame wrote:
> | Anyone know how to list the names and descriptions of all the services
> on the system?
>
> psservice in pstools package at http://www.sysinternals.com will do that
> and more.
>
$ psservice.exe query sshd
PsService v2.13 - Service information and configuration utility
Copyright (C) 2001-2004 Mark Russinovich
Sysinternals - www.sysinternals.com
SERVICE_NAME: sshd
DISPLAY_NAME: sshd
(null)
TYPE : 10 WIN32_OWN_PROCESS
STATE : 1 STOPPED
(NOT_STOPPABLE,NOT_PAUSABLE,IGNORES_SHUTDOWN)
^^^^^^^^^^^^^
WIN32_EXIT_CODE : 1077 (0x435)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
Hmmm. Maybe this really means the folks at Cygwin are unstoppable?
;-)
As an alternative to the pstools, there's a Perl module named
Win32::Service that you can use to write your own custom approach.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list