From: Chris Koeritz Date: Mon, 14 May 2018 18:24:17 +0000 (-0400) Subject: thou shalt not kill X-Git-Tag: 2.140.112^2~45 X-Git-Url: https://feistymeow.org/gitweb/?p=feisty_meow.git;a=commitdiff_plain;h=3ce4056145ddf83646f0e3865ad5f9ae9da98cde thou shalt not kill or write scripts that contain the word in their name, i guess. --- diff --git a/scripts/opensim/kill_opensims.sh b/scripts/opensim/kill_opensims.sh deleted file mode 100644 index 243523c4..00000000 --- a/scripts/opensim/kill_opensims.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" - -sep -date -echo -echo zapping all the mono tasks... -procs=$(psfind mono) -echo processes marked for death: $procs -for i in $procs; do - kill $i -done -sep -echo here are the mono processes after zapping: -psa mono -sep - - diff --git a/scripts/opensim/zap_opensims.sh b/scripts/opensim/zap_opensims.sh new file mode 100644 index 00000000..243523c4 --- /dev/null +++ b/scripts/opensim/zap_opensims.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" + +sep +date +echo +echo zapping all the mono tasks... +procs=$(psfind mono) +echo processes marked for death: $procs +for i in $procs; do + kill $i +done +sep +echo here are the mono processes after zapping: +psa mono +sep + + diff --git a/scripts/processes/pskill.sh b/scripts/processes/pskill.sh deleted file mode 100644 index 31e119f8..00000000 --- a/scripts/processes/pskill.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -if [ -z "$1" ]; then - echo "Did not find a parameter to seek out and whack from the process list." - exit 2 -fi - -source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" - -PIDLIST=$(psfind $1) -#echo "PIDS are $PIDLIST" -if [ -z "$PIDLIST" ]; then - echo "Your process name was not found in the system." - exit 1 -fi -echo "Here are the processes matching your pattern:" -ps $PIDLIST -echo "Are you sure you want to kill all of these? [y/N] " -read answer -if [ "$answer" = "Y" -o "$answer" = "y" ]; then - kill -9 $PIDLIST -else - echo "You chose not to zap the processes." -fi - diff --git a/scripts/processes/pszap.sh b/scripts/processes/pszap.sh new file mode 100644 index 00000000..31e119f8 --- /dev/null +++ b/scripts/processes/pszap.sh @@ -0,0 +1,24 @@ +#!/bin/bash +if [ -z "$1" ]; then + echo "Did not find a parameter to seek out and whack from the process list." + exit 2 +fi + +source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" + +PIDLIST=$(psfind $1) +#echo "PIDS are $PIDLIST" +if [ -z "$PIDLIST" ]; then + echo "Your process name was not found in the system." + exit 1 +fi +echo "Here are the processes matching your pattern:" +ps $PIDLIST +echo "Are you sure you want to kill all of these? [y/N] " +read answer +if [ "$answer" = "Y" -o "$answer" = "y" ]; then + kill -9 $PIDLIST +else + echo "You chose not to zap the processes." +fi +