Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <4228C87E.3090802@sbcglobal.net> Date: Fri, 04 Mar 2005 12:43:42 -0800 From: GD Reply-To: d1945 AT sbcglobal DOT net User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Listing services References: <200503041150 DOT 14903 DOT colin AT breame DOT net> <4228923B DOT 5040102 AT scluk DOT com> In-Reply-To: <4228923B.5040102@scluk.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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/