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 Date: Fri, 04 Mar 2005 09:30:03 -0800 From: David Rothenberger Subject: Re: Listing services In-reply-to: <200503041150.14903.colin@breame.net> To: Colin JN Breame Cc: cygwin AT cygwin DOT com Message-id: <42289B1B.7000103@acm.org> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=------------enig2929BCFB48771279919415A2 References: <200503041150 DOT 14903 DOT colin AT breame DOT net> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com --------------enig2929BCFB48771279919415A2 Content-Type: multipart/mixed; boundary="------------040809060905050200080901" This is a multi-part message in MIME format. --------------040809060905050200080901 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 3/4/2005 3:50 AM, Colin JN Breame wrote: > Hello, > > Anyone know how to list the names and descriptions of all the services on the > system? > > Cheers, I do it with the following script which uses /proc. -- David Rothenberger spammer? -> spam AT daveroth DOT dyndns DOT org GPG/PGP: 0x7F67E734, C233 365A 25EF 2C5F C8E1 43DF B44F BA26 7F67 E734 This page intentionally left blank. --------------040809060905050200080901 Content-Type: text/plain; name="lsservices" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="lsservices" #!/bin/sh usage() { cat <