new script is handy; just lists process names for a particular user. just use a...
[feisty_meow.git] / scripts / processes / list_process_names.sh
diff --git a/scripts/processes/list_process_names.sh b/scripts/processes/list_process_names.sh
new file mode 100644 (file)
index 0000000..4808169
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+# looks for process names for a particular user.  if no user is specified, then this
+# assumes we should look for the current user's processes.
+
+user="$1"
+if [ -z "$user" ]; then
+  user="$USER"
+fi
+
+ps wuax | grep $user | awk '{ print $11; }'