cancel
Showing results for 
Search instead for 
Did you mean: 

User Shell PID.

jeevarajis
Occasional Contributor

User Shell PID.

Hi All

OS- HPUX 11.23

Dear All,

In one of my server dozen of application process is running from one of the user called "kplustp". How to find whether these process are from same shell or not??? if its from same shell how to find the PID of that particular shell. Is that shell PID same for all the process owned by this particular user.

Reg

Jeev
2 REPLIES
Kapil Jha
Honored Contributor

Re: User Shell PID.

u can check the ppid(parent process ID).
ps -ef|grep shell
and see how many shells are there and then grep each shell id and they would show u ther process running fromt hat shell.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Dennis Handly
Acclaimed Contributor

Re: User Shell PID.

You can do a visual inspection of an indented hierarchical ps listing:
UNIX95=EXTENDED_PS ps -H -fu kplustp