This is the mail archive of the
cygwin
mailing list for the Cygwin project.
cygrunsrv "improvements"
- From: Kizito Porta Balanyà <kfeina at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 24 Dec 2014 11:22:43 +0100
- Subject: cygrunsrv "improvements"
- Authentication-results: sourceware.org; auth=none
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