John H. Robinson, IV wrote:
Ralph Shumaker wrote:
I want to use "ps -Hef" but limit its output to the user running the
command. Maybe I'm blind, because I cannot seem to find the appropriate
switch.
How do I do it?
Since -e means all processes, get rid of that.
-u allows you to select by effectve UID.
$ ps -Hfu $USER
Well that example worked. (So it was the presence of -e when I tried to
invoke -u that brought up a usage crib sheet.) I figured that -u would
be a filter, not expansive. A simple ps only delivers two items, which
do *not* include what I wanted.
Now that I can see -u working, and expanding the list to include the
item(s) I want, I don't actually need the other switches, and can even
eliminate a couple of grep statements in the pipe. The best part is
that this script will be able to work for anyone, and affect only their
processes.
Thanks John.
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list