I am confused of what a processes name is considered to be. Maybe answers the following questions may clear it up for me.
1) Is a processname the same thing as a UID?
2) What other ways can you name a process?
After doing a ps -ef cmd, amoung other output I extracted the following that seems to relate to me:
UID PID PPID C STIME TTY TIME CMD
root 9956 3572 0.0 16:00:31 ttyp6 0:00.04 ps -ef
steve 10046 3546 0.0 15:59:53 ttypc 0:00.04 emacs file.txt
steve 8185 3546 0.0 15:59:50 ttypc 0:00.04 emacs file.txt
steve 9860 3546 0.0 15:59:56 ttypc 0:00.04 emacs file.txt
steve 9290 8325 0.0 15:12:51 ttyp8 0:00.06 -csh (csh)
steve 3546 3348 0.0 08:23:42 ttypc 0:00.70 -csh (csh)
steve 10047 9290 0.0 15:57:53 ttyp8 0:00.02 vi finq9
If I execute the following command:
steve> ps -ef | grep processname | awk '{printf $1 " " $2 " " $3 "\n"}'
I get this output:
steve 7001 3572
3) Is Steve the process name?
4) Why does root show up as the UID when I do the ps -ef command?
5) bonus question: is a process by any other name still a process? (just kidding)
regards and thanks...
Steve