```sh
# Check if VPNC is already running, otherwise start it
if ( ps -ef | grep -v grep | grep -v vpnc_ondemand | grep -v less | grep vpnc > /dev/null ) ; then
    echo "Shell script is already running then dont run this script and terminate the script".

exit                
else 

echo "run the other part of script "

```

I want that if this process is already running then whole script just get terminated itself, and if doesn't run further part of script.

Or this code which I have already written will execute it what am I looking for