Operating System - HP-UX
1821985 Members
3484 Online
109638 Solutions
New Discussion юеВ

HPUX equivalent of 'ptree' or 'pstree'

 
SOLVED
Go to solution
Rick Garland
Honored Contributor

HPUX equivalent of 'ptree' or 'pstree'

Hi all:

Was working on Solaris system tracking down a wild cron job. Discovered the 'ptree' command. Discovered the 'pstree' command on Linux.

Does this "neat-o" command exist on HPUX?


4 REPLIES 4
Rodney Hills
Honored Contributor

Re: HPUX equivalent of 'ptree' or 'pstree'

I was looking for it too. Software porting archive doesn't seem to have one.

The closest I got was doing-
UNIX95=1 ps -H -u theuser

To display a tree for a specific user.

-- Rod Hills
There be dragons...
Alex Lavrov.
Honored Contributor

Re: HPUX equivalent of 'ptree' or 'pstree'

Theere is not built-in. I remember several years ago, we had to write script for this.


I'm not sure, but this one looks like it supports HP-UX:
http://bjh21.me.uk/pstree/



Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Patrick Wallek
Honored Contributor
Solution

Re: HPUX equivalent of 'ptree' or 'pstree'

I don't remember where I found this, but here is ptree.sh for HP-UX.
Rick Garland
Honored Contributor

Re: HPUX equivalent of 'ptree' or 'pstree'

Thanks all!