From 6c50d90a24c823e34878034fa7ae211e235454ec Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Mon, 14 Jan 2013 10:52:35 -0500 Subject: [PATCH] new script is handy; just lists process names for a particular user. just use a user of "." if you want to list all users process names. --- scripts/processes/list_process_names.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 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 index 00000000..4808169a --- /dev/null +++ b/scripts/processes/list_process_names.sh @@ -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; }' -- 2.34.1