- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to get the complete process name
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
02-25-2003 01:52 AM
02-25-2003 01:52 AM
How to get the complete process name
I need to read from C/C++ the list of processes on a HP-UX (11.00/11.11) with the full name of the executable. pstat() truncates the name at 14 chars. On the other side 'top' displays the full length name (and also 'ps' with UNIX95 environment variable set).
What calls are used by 'top' to do this ?
(BTW: on some installations of HP-UX 11.11 pstat truncates at 13 chars. Do you know if there is a patch for this ?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2003 04:30 AM
02-25-2003 04:30 AM
Re: How to get the complete process name
Maybe this helps,
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xbd3d35a43b46d71190080090279cd0f9,00.html
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2003 11:48 PM
02-25-2003 11:48 PM
Re: How to get the complete process name
In the thread reported by Robert-Jan it's mentioned the patch PHCO_26274, in the description it's written: "Now pstat(2) is enhanced to give command names upto 1024 bytes"
I couldn't find how to get these 1024 bytes. Is there a documentation/sample code on this pstat() version ?
TIA,
Fabrizio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 10:49 AM
03-17-2003 10:49 AM
Re: How to get the complete process name
I saw man messages about this topic, as I know, there is no way to get the complete data about the process. in Linux for example, there is fs /proc, where u can find all the information about each process, in HPUX there is no such thing ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 01:05 PM
03-17-2003 01:05 PM
Re: How to get the complete process name
there is a newer API out for this, but AFAIK only for 11i...
You should check on the HP Developers Site!
FWIW,
Wodisch