#!/bin/ksh NUM=`ps -ef | grep "[p]rocess.sh" | wc -l if [ $NUM -gt 1 ] then echo "The script is running" exit 0 fi