Write a program to send SIGKILL signals to all of your running processes except your current shell (and the current process) based on the following shell script:
pidlist=`ps -aux | grep "^$LOGNAME" | grep -v $$ | \
tr -s " " | cut -f 2 -d " "`
for pid in pidlist
do
kill -9 $pid >/dev/null 2>/dev/null
done