delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/12/24/05:23:04

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:date:message-id:subject:from:to
:content-type; q=dns; s=default; b=xb92zvpl9U0Xn5ATXtdxix1hV1v1n
VkghYhARGTFSYUbNUryUBjPCNq9ZxLNysdBw9tIJ2OqX6qhQnJAeWitrnqCbexr3
oKTrWB3a1XEZUKrjIUOIAiYpvPUhyStXQi4vNNadG8VWLLTVAucyJr4KJOZLGeFx
6wS49/ZbmXWftA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:date:message-id:subject:from:to
:content-type; s=default; bh=DBC5fXrnDkUUOryewqzeIX+qxoc=; b=ah0
/NNJUHHC2Jv+6t6idGysU4A/YRFIOVnAySuPkfVe1+nFDm7b6WqHqT/b1hcWFXZa
NwvlNcDIgoQw5MQRiquoUtJsiLOd13y+gBWdhN41VZ0giIWmLvjLoow8WUtS5BM9
Wn8HtjQ3End3il2LDDpmhaQDBmHKE1+mTwgmrvtk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-qg0-f43.google.com
MIME-Version: 1.0
X-Received: by 10.224.74.132 with SMTP id u4mr53356281qaj.61.1419416563746; Wed, 24 Dec 2014 02:22:43 -0800 (PST)
Date: Wed, 24 Dec 2014 11:22:43 +0100
Message-ID: <CAO2ddnY9FAswggHk_opEiQwkjKJA03de7TySZ+S80qM7DtJ8-A@mail.gmail.com>
Subject: cygrunsrv "improvements"
From: =?UTF-8?Q?Kizito_Porta_Balany=C3=A0?= <kfeina AT gmail DOT com>
To: cygwin AT cygwin DOT com

Hello again,

I would like to script the exit values of cygrunsrv --query servicename.
In particular I would test the values of the "Current State" output:
stopped, started, running.

I know that I can wrap and grep the output "Current State " and get
the desired result, but I think that something like the following
would be useful. For example:

cygrunsrv --checkstopped servicename , should return true or false
cygrunsrv --checkstarted servicename, should return true or false
cygrunsrv --checkruning servicename, should return true or false

What do you think?

Thanks a lot for your time.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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