3 main_pid=$( ps wuax | grep "[0-9] mono OpenSim.exe" | grep -vi screen | sed -e "s/$USER *\([0-9][0-9]*\).*/\1/" )
5 if [ ! -z "$main_pid" ]; then
6 echo Zapping main opensim process with id $main_pid.
9 echo There does not seem to be a main opensim process running.