Operating System - HP-UX
1748106 Members
4886 Online
108758 Solutions
New Discussion

Re: Path of a running process

 
MoaAM
Occasional Contributor

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.

3 REPLIES 3
Stan_M
HPE Pro

Re: Path of a running process

ps -ef

?

 

or programatically (man pstat_getcommandline)

I work for HPE
Patrick Wallek
Honored Contributor

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.

boukari
Frequent Advisor

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,

BCS SW/HW GSC Engineer (L1)
IEEE Student Member
LPI 3 CORE & High Availability
VCP Vshpere 5 Datacenter
Novell CLA and Data Center specialist Certified
.....
Microsoft Partner & Microsoft student Partner