# !/bin/sh echo "gwb4proc: test and exit if Bilmax21 wb4 is already running..." WB4PROCS=`ps -ef | grep wb4 | grep -v wb4retro | grep -v gwb4proc | grep -v grep"` echo "WB4PROCS=[$WB4PROCS]" if [ -n "$WB4PROCS" ]; then echo "wb4 is running" exit else echo "wb4 is NOT running" fi