[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cygwin
Subject:    cygrunsrv "improvements"
From:       Kizito_Porta_BalanyĆ  <kfeina () gmail ! com>
Date:       2014-12-24 10:22:43
Message-ID: CAO2ddnY9FAswggHk_opEiQwkjKJA03de7TySZ+S80qM7DtJ8-A () mail ! gmail ! com
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic