This script is a safer (but not 100% guaranteed safe) way to terminate a shared memory process on UNIX.
Usage: [PROTOPDIR]/bin/killprosession.sh [ -q ] [ -f ] [ -v ] pid1 [pid2 pid3 ...]
-q quiet. No prompts
-f force. Will execute a kill -SIGFPE if lsof and svmon/pmap seem clear. DANGEROUS!
-v verbose. Generate verbose output
The script is delivered as [PROTOPDIR]/bin/killprosession.shx. To use it, rename it to killprosession.sh and comment out the line “ECHO=echo” at the beginning of the script. If you do not comment out this line, all the commands are echoed and not actually executed.