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