thou shalt not kill
authorChris Koeritz <fred@gruntose.com>
Mon, 14 May 2018 18:24:17 +0000 (14:24 -0400)
committerChris Koeritz <fred@gruntose.com>
Mon, 14 May 2018 18:24:17 +0000 (14:24 -0400)
or write scripts that contain the word in their name, i guess.

scripts/opensim/kill_opensims.sh [deleted file]
scripts/opensim/zap_opensims.sh [new file with mode: 0644]
scripts/processes/pskill.sh [deleted file]
scripts/processes/pszap.sh [new file with mode: 0644]

diff --git a/scripts/opensim/kill_opensims.sh b/scripts/opensim/kill_opensims.sh
deleted file mode 100644 (file)
index 243523c..0000000
+++ /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 (file)
index 0000000..243523c
--- /dev/null
@@ -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 (file)
index 31e119f..0000000
+++ /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 (file)
index 0000000..31e119f
--- /dev/null
@@ -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
+