Solved

Solaris - check the process

Posted on 2011-09-21
6
391 Views
Last Modified: 2012-05-12
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
0
Comment
Question by:joaotelles
6 Comments
 
LVL 48

Assisted Solution

by:Tintin
Tintin earned 334 total points
ID: 36576130
If you do

ps -fp <PID>

where <PID> is the PID number, the owner is in the first column
0
 

Author Comment

by:joaotelles
ID: 36576281
I know how to see the owner.

What I want to check is which script created the PID and at what time.
0
 
LVL 48

Accepted Solution

by:
Tintin earned 334 total points
ID: 36576552
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 38

Assisted Solution

by:wesly_chen
wesly_chen earned 166 total points
ID: 36578058
In Solaris called ptree
ptree  <PID>
0
 
LVL 9

Expert Comment

by:amolg
ID: 36580268
prstat -a
0
 

Author Closing Comment

by:joaotelles
ID: 36599596
Tks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now