- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /proc/pid/stat file in HP-UX
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
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
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
тАО08-01-2004 04:23 PM
тАО08-01-2004 04:23 PM
In Linux we have /proc/pid/stat file for a process information..
Similarly where can I find the file in HP-UX ?
Thanks in advance,
Murugesan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2004 04:53 PM
тАО08-01-2004 04:53 PM
Re: /proc/pid/stat file in HP-UX
Is there some specific piece of information that are you trying to find out about a running process?
Regards,
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2004 04:55 PM
тАО08-01-2004 04:55 PM
SolutionIf you want to get the process informations then use ps -efl and pstat_getproc() call ( programming is needed )
http://h21007.www2.hp.com/cmdspp/QuestionAnswer/1,1764,CC81A71B-B5C4-4101-91CF-F1F635999BD1,00.html
- muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2004 05:01 PM
тАО08-01-2004 05:01 PM
Re: /proc/pid/stat file in HP-UX
To get information on a process you need to use variations of the ├в ps├в command or othe tools (eg glance)
One useful ├в ps├в command which gives you CPU usage and Memory usage for a process is as follows:
# UNIX95= ps -eo "pid ruser stime state vsz pcpu args"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2004 05:03 PM
тАО08-01-2004 05:03 PM
Re: /proc/pid/stat file in HP-UX
To get information on a process you need to use variations of the 'ps' command or other tools (eg glance).
One useful 'ps' command which gives you CPU usage and Memory usage for a process is as follows:
# UNIX95= ps -eo "pid ruser stime state vsz pcpu args"
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2004 05:27 PM
тАО08-01-2004 05:27 PM
Re: /proc/pid/stat file in HP-UX
I need to write a C program to get the parent process ids of a particular process given the child process id...
This I can do it with /proc/pid/stat in Linux...
How can I achieve it in HP-UX.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2004 05:47 AM
тАО08-04-2004 05:47 AM
Re: /proc/pid/stat file in HP-UX
#include
#include
#include
#include
int main(int argc, char *argv[])
{
struct pst_status pst;
int i, pid;
for (i=1; i
if (pstat_getproc(&pst, sizeof(pst), 0, pid) > 0) {
printf("pid %d, ppid %d\n", pid, pst.pst_ppid);
} else {
printf("pid %d doesn't exist\n", pid);
}
}
return 0;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2004 07:39 AM
тАО08-04-2004 07:39 AM
Re: /proc/pid/stat file in HP-UX
alias ps="UNIX95= ps"
Now type ps -f or ps -f -u myuser and you can view the process hiearchy.
Bill Hassell, sysadmin