Solaris - check the process

Hi,

I have a process.

I have a PID number of a specific process.

Is there any log/command where I can find out who did create this process?

Tks,
Joao
joaotellesAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
TintinConnect With a Mentor Commented:
The 5th column of the ps output will show you when the process was started.

As for what initiated the process, it depends on what the Parent PID (PPID) is.

If the PPID (3rd column) is 1, then the process is most likely started at boot time.

If the PPID is some other number, then another process started it.

Can't remember if Solaris has pstree command.  Try doing

pstree <PID>

if there is no pstree command, you can check the parent process by doing

ps -fp <PPID>

where <PPID> is the number from the 3rd column in the initial ps output.
0
 
TintinConnect With a Mentor Commented:
If you do

ps -fp <PID>

where <PID> is the PID number, the owner is in the first column
0
 
joaotellesAuthor Commented:
I know how to see the owner.

What I want to check is which script created the PID and at what time.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
wesly_chenConnect With a Mentor Commented:
In Solaris called ptree
ptree  <PID>
0
 
AmolCommented:
prstat -a
0
 
joaotellesAuthor Commented:
Tks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.