- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Path of a running process
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
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
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
04-25-2014 01:47 AM
04-25-2014 01:47 AM
Path of a running process
Please let me know how can we get full path of a running process.
eg:
informix 13622 13592 0 Mar 11 ? 7:13 oninit
How can we know the path from where the oninit process is running.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2014 03:37 AM
04-25-2014 03:37 AM
Re: Path of a running process
ps -ef
?
or programatically (man pstat_getcommandline)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2014 06:27 AM
04-25-2014 06:27 AM
Re: Path of a running process
If you have 'lsof' installed you can use it to look at all open files for a particular process.
For example, to check on your 'oninit' process with PID 13622 you can do:
# lsof -p 13622
If you do not have 'lsof' you can get it from:
http://mirrors.develooper.com/hpux/downloads.html
Just look for the package that corresponds to your HP-UX version.
- Tags:
- lsof
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2014 04:48 AM
05-07-2014 04:48 AM
Re: Path of a running process
Bonjour,
Fait un simple :
#ps -ef | grep <id_service>
et tu aura normalement, une sortie de ce type :
******* 14468 14466 0 Feb 3 ? 96:19 /********/psoft/*******/*******_agentd -c /moteurs/psoft/*******/*****_agentd.conf
Cordialement,
IEEE Student Member
LPI 3 CORE & High Availability
VCP Vshpere 5 Datacenter
Novell CLA and Data Center specialist Certified
.....
Microsoft Partner & Microsoft student Partner