delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/01/08:13:36

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: swamp-dog AT ntlworld DOT com (Guy Harrison)
To: <cygwin AT cygwin DOT com>
Subject: Re: cygqrysrv
Date: Sat, 01 Dec 2001 13:06:44 GMT
Reply-To: swamp-dog AT ntlworld DOT com
Message-ID: <3c0ac89d.1963152@smtp.swampdog>
References: <1006719960009516 AT firemail DOT de> <11487331716 DOT 20011125215729 AT familiehaase DOT de> <3c0ef983 DOT 12033913 AT smtp DOT swampdog> <3C06C19B DOT 772F3C54 AT whack DOT org>
In-Reply-To: <3C06C19B.772F3C54@whack.org>
X-Mailer: Forte Agent 1.5/32.451
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id fB1DDX330515

On Thu, 29 Nov 2001 15:15:39 -0800, Peter Wohlers <pedro AT whack DOT org>
wrote:

>
>
>Guy Harrison wrote:
>> 
>> On Sun, 25 Nov 2001 21:57:29 +0100, "Gerrit P. Haase"
>> <gp AT familiehaase DOT de> wrote:
>> 
>> >Now I'm only missing one, how to get a list of ALL services with name
>> >& displayed name?
>> 
>> Er - pass! I can never remember its syntax - which was the initial
>> reason wanting my own version. Moreover, SC has another (infuriating)
>> feature. I'll elaborate on this in the next episode <g>
>> 
>
>From the RK
>
>D:\>netsvc
>Controls and displays the status of services.
>
>NETSVC servicename \\computername /command
>
>   servicename  Name of the service
>   computername Name of the computer to administer.
>   /command     One of the following:
>                /query    Queries the status of the service.
>                /start    Starts the service.
>                /stop     Stops the service.
>                /pause    Pauses the service.
>                /continue Starts the paused service.
>                /list     Lists installed services (omit servicename)
>
>Example: NETSVC server  \\joes486 /query
>Example: NETSVC "Clipbook Server" \\popcorn /stop
>Example: NETSVC alerter \\joes486 /pause
>Example: NETSVC /list \\joes486
>
>Arguments are allowed in any order.

I'm afraid NETSVC doesn't appear to exist in the free RK. Incidentally,
has NETSVC ever exhibited this kind of behaviour?

 >sc query
 >[2 or 3 pages of data]
 >Enum: more data, need 660 bytes start resume at index 128

..where 660 and 128 vary.


 
-- 
swamp-dog AT ntlworld DOT com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019