Operating System - HP-UX
1753824 Members
8569 Online
108805 Solutions
New Discussion юеВ

Re: what is the similar command of ptree (SOlaris) in HP-ux

 
Mani K
Occasional Advisor

what is the similar command of ptree (SOlaris) in HP-ux

Hello..

can you tell me what is the command that can be used to check the process tree for any PID in hp-ux.

In solaris , we can use ptree..

what about in hp-ux?

Never Say Can't.........................
6 REPLIES 6
paolo barila
Valued Contributor

Re: what is the similar command of ptree (SOlaris) in HP-ux

Geoff Wild
Honored Contributor

Re: what is the similar command of ptree (SOlaris) in HP-ux

Another good site for you is the Rosetta Stone for Unix:

http://bhami.com/rosetta.html

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
James R. Ferguson
Acclaimed Contributor

Re: what is the similar command of ptree (SOlaris) in HP-ux

Hi Mani:

# UNIX95= ps -efH

Note that the use of the UNIX95 variable persists *only* for the command line. There is a blank (space) after the equal sign and before the 'ps'.

The '-H' (hierarchy) option is the "tree" you want. It is only available under XPG4 (UNIX95) behavior on HP-UX.

Regards!

...JRF...
Chauhan Amit
Respected Contributor

Re: what is the similar command of ptree (SOlaris) in HP-ux

Hi Mani,

There is no exact equivalent , but got one script from the forum archive which can help you achieving the same functionality.

-Amit
If you are not a part of solution , then you are a part of problem
Muthukumar_5
Honored Contributor

Re: what is the similar command of ptree (SOlaris) in HP-ux

Use as,

# UNIX95= ps -ef -H

--
Muthu
Easy to suggest when don't know about the problem!
Arturo Galbiati
Esteemed Contributor

Re: what is the similar command of ptree (SOlaris) in HP-ux