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: 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 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: Subject: cygrunsrv "improvements" From: =?UTF-8?Q?Kizito_Porta_Balany=C3=A0?= To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 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