new script is handy; just lists process names for a particular user. just use a...
authorChris Koeritz <fred@gruntose.com>
Mon, 14 Jan 2013 15:52:35 +0000 (10:52 -0500)
committerChris Koeritz <fred@gruntose.com>
Mon, 14 Jan 2013 15:52:35 +0000 (10:52 -0500)
"." if you want to list all users process names.

scripts/processes/list_process_names.sh [new file with mode: 0644]

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; }'