#!/bin/sh ps ax |grep -w $1 |grep -v grep |grep -v "WPS_Functions.SYSTEM.PROCES.IS-ALIVE.sh" >/dev/null && echo "ALIVE" || { echo "DEAD" exit 1 }