Hi.
I am logging into a remote unix/linux server (of any kind - aix, hpux, linux...)
I would like to run a shell command that will return me the list of PIDs that relate to my tree. I need to get the PID of my father, and my self.
I know that my SSHD process openes a BASH process. need both my SSHD PID and my BASH pid.
If I do only "ps", I get the BASH pid and the PS command pid. not the SSHD father.
I checked also pstree but it is quite graphical and hard to parse, and it doesn't run on all OSs. I need something very generic...
I don't mind having a long command with PS, GREP, AWK... as long as I get a list of PID as requested.
please assist me !! this is very urgnet to me and I am out of ideas.
thanks,
Yamsin