#!/bin/sh processName="ManagementAgentHost" pid=$(ps aux | egrep "${processName}" | egrep -v "color=auto|grep" | awk '{print $2}') if [ -z "$pid" ]; then printf "false" else printf "true" fi