bloudermilk/pilot — pull request #7 by patbenatar (2013-01-03 20:01:29+00:00)
Title: Status

Adds `$ pilot status ` to check whether a given program is currently loaded with launchctl

If the program is loaded, outputs "Running".
If not, exits with failing status code.

Not sure if exiting with a failing status code is the best thing to do when the program isn't loaded. It does make it easy to determine if a program is running or not, without doing string matching on the output.. But its not as user friendly as outputting descriptive text (ie: "Not running" or "Stopped").

Thoughts?