#!/bin/bash hive=`/etc/init.d/HiveMind status | grep status | awk '{print $3}'` if [ "$hive" = "started" ]; then # echo "\${color green}started\$color" echo "started" else # echo "\${color red}stopped\$color" echo "stopped" fi