first check-in of feisty meow codebase. many things broken still due to recent
[feisty_meow.git] / scripts / opensim / zap_opensim_main.sh
1 #!/bin/bash
2
3 main_pid=$( ps wuax | grep "[0-9] mono OpenSim.exe" | grep -vi screen | sed -e "s/$USER  *\([0-9][0-9]*\).*/\1/" )
4
5 if [ ! -z "$main_pid" ]; then
6   echo Zapping main opensim process with id $main_pid.
7   kill -9 $main_pid
8 else
9   echo There does not seem to be a main opensim process running.
10 fi
11
12