Hi guys the problem is pretty simple I just don't know how to solve this in bash. I want to write simple mule server status checker. I can check it using command:
./mule status
Then I receive to possible communicates:
If all ok:
MULE_HOME is set to /home/mule/mule
Mule is running (3496).
And if not ok:
MULE_HOME is set to /home/mule/mule
Mule is not running.
How can I catch this communicates and for example do simple if / else with - eq