Solved

Solaris - check the process

Posted on 2011-09-21
6
395 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Question has a verified solution.

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

Suggested Solutions

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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.

726 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