trick/bin/kill_sim
Alex Lin 14a75508a3 Cleaning up once include variables and copyright cleanup.
Changed all header file once include variables to follow the same naming
convention and not start with any underscores.  Also deleted old
incorrect copyright notices.  Also removed $Id: tags from all files.

Fixes #14.  Fixes #22.
2015-03-23 16:03:14 -05:00

23 lines
421 B
Bash
Executable File

#!/bin/sh
if [ `uname -s` = "SunOS" ]
then MY_UID=`/usr/xpg4/bin/id -u`
else
MY_UID=`id -u`
fi
if [ `uname -s` = "Linux" ]
then PS_ARGS="-fw -u $MY_UID"
elif [ `uname -s` = "Darwin" ]
then PS_ARGS="-u $MY_UID"
else
PS_ARGS="-f -u $MY_UID"
fi
MY_PROCESSES=`ps $PS_ARGS | grep [sST]_main_ | grep -v grep | awk '{print $2}'`
for i in $MY_PROCESSES
do echo "kill -9 $i"
`kill -9 $i`
done