HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: pstree
Operating System - HP-UX
1832977
Members
2593
Online
110048
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2001 06:22 PM
06-21-2001 06:22 PM
pstree
Hi,
is there anything like pstree, to list a process tree - parent and children, in HPUX?
thanks,Greg
is there anything like pstree, to list a process tree - parent and children, in HPUX?
thanks,Greg
Confucious Confused
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2001 07:45 PM
06-21-2001 07:45 PM
Re: pstree
Greg,
Try this:
UNIX95=1 ps -e -H
Here is a snippet from the ps man page:
-H (XPG4 Only.) Shows the process hierarchy. Each process is displayed under its parent, and the contents of the args or comm column for that process is indented from that of its parent. Note that this option is expensive in both memory and speed.
You have to set the UNIX95 environment variable to use the XPG4 features of 'ps', but just set it on the command where you run 'ps' as UNIX95 can effect many other commmands also.
JP
Try this:
UNIX95=1 ps -e -H
Here is a snippet from the ps man page:
-H (XPG4 Only.) Shows the process hierarchy. Each process is displayed under its parent, and the contents of the args or comm column for that process is indented from that of its parent. Note that this option is expensive in both memory and speed.
You have to set the UNIX95 environment variable to use the XPG4 features of 'ps', but just set it on the command where you run 'ps' as UNIX95 can effect many other commmands also.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2001 08:19 AM
06-22-2001 08:19 AM
Re: pstree
Here's a nice link on it
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xcaa1854994d9d4118fef0090279cd0f9,00.html
To see other parameters and differences 'man ps' and look for XPG or UNIX95.
ps -C process_name
save you typing a grep!
For some other interesting env variables see 'man environ'.
Bill
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xcaa1854994d9d4118fef0090279cd0f9,00.html
To see other parameters and differences 'man ps' and look for XPG or UNIX95.
ps -C process_name
save you typing a grep!
For some other interesting env variables see 'man environ'.
Bill
It works for me (tm)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP