simple help

hi everyone below is my shell script,:frowning:
i need help from someone.

#!/bin/ksh
#show some useful info

date
echo Good morning $USER
cal

PROGLIST=`cat process.csv`

for PROG in $PROGLIST
do

PRONAME=`echo "$LINE" | cut -d";" -f2`
PROEXE=`echo "$LINE" | cut -d";" -f1`
RUNNINGPROGCOUNT=`ps -ef | grep "$PROG" | wc -l`
echo $RUNNINGPROGCOUNT
#check the program is running
if [ ${RUNNINGPROGCOUNT} -eq 0 ]; then
echo $PROEXE
#run the program
$PROEXE
echo `date` Restart $PROEXE
fi
done

What is it you need help with? The fact you never get a zero count? RUNNINGPROGCOUNT --

i want to do a program for checking the process whether is running or not. firstly i got one file call as process.csv, inside the content is look like below..
PROEXE PRONAME
/process/tmp/kckoh/app1;app;
/process/tmp/kckoh/app2;app2;
/process/tmp/kckoh/app3;app3;

and the app.c file locate in /process/tmp/kckoh/app1 directory
so now i need is to read this process.csv file and execute the "app" through the shell script to check whethe is running or not, if the process is not running, it will send a email alert to the user email...
anyone can help me?:o