11-27-2008
for example:
ps -U root -eo pid,ppid,comm
see man ps
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I need to write a script to monitor user processes that revert to parent process id = 1
I can do this with a grep " 1 " or awk and evaluation.
but
Is there a switch on the ps command or another command to specify parent id on proccesses?
I tried ps with the -p ppid=nnnnn but it... (6 Replies)
Discussion started by: MizzGail
6 Replies
2. Shell Programming and Scripting
Does anyone know a shell command that identifies the functions from a C file? Thank you (7 Replies)
Discussion started by: xinfinity
7 Replies
3. Solaris
I've been seeing outgoing TCP connections on a SPARC Solaris 10 box, that look like these in the output of netstat:
xxxx.46396 ipXXXXXX.speed.planet.nl.telnet 8192 0 49664 0 TIME_WAIT
They come and go and sometimes last for hours.
I am looking for owners of active,... (1 Reply)
Discussion started by: cozzamara
1 Replies
4. UNIX for Advanced & Expert Users
Guys,
Is there any UNIX command that captures the 'Unix process which is performing high disk I/O reads and writes'.
can you help me in this?
-Swamy (6 Replies)
Discussion started by: avsswamy
6 Replies
5. Shell Programming and Scripting
I have this shell script and in case the sybase process is been killed how can identify whether the process was killed or not, as the error code always returns 0.
#!/bin/sh
isql -S SERVER -U user -P pass<<TOP
select * from tableName
go
TOP
echo $? (2 Replies)
Discussion started by: dinjo_jo
2 Replies
6. HP-UX
Hi,
I'm seeing the error vmunix: file: table is full in syslog.log.
Although changing the value of the kernel parameter nfile would make this error go away, how would I identify which process/application in the server is triggering this error? The server is a HP-UX B.11.11.
Thanks in advance! (1 Reply)
Discussion started by: enchogas
1 Replies
7. UNIX for Dummies Questions & Answers
if a particular log file logs different processes with their process ids and their paths and one of the process in particular is getting hung up while trying to perform a loop, how to identify which process is that and kill it (1 Reply)
Discussion started by: praveenveerla
1 Replies
8. UNIX for Dummies Questions & Answers
Hi, how do you identify if a java process is running in Unix? So for example if I have 8 JVM's running but I want to make sure one of them has definately stopped? (1 Reply)
Discussion started by: nosuchluck
1 Replies
9. UNIX for Dummies Questions & Answers
Hey guys. So, I've got an issue on my Debian box.
Problem is I ran out of disc space as a process (?) has been creating millions of folders in one place which has led to me having 0 bytes of free space and started messing with my ability to get online, I believe this is to do with INODES?
I... (3 Replies)
Discussion started by: 3therk1ll
3 Replies
10. Solaris
Hi,
I have a Solaris 10 system, which appears to be sending out LDAP queries to a server that is due to be decomissioned.
Is there a way to identify which process is sending out these queries? The problem is that the local port constantly changes, and the connections do not stay open long... (3 Replies)
Discussion started by: badoshi
3 Replies
LEARN ABOUT LINUX
process-keyring
PROCESS-KEYRING(7) Linux Programmer's Manual PROCESS-KEYRING(7)
NAME
process-keyring - per-process shared keyring
DESCRIPTION
The process keyring is a keyring used to anchor keys on behalf of a process. It is created only when a process requests it. The process
keyring has the name (description) _pid.
A special serial number value, KEY_SPEC_PROCESS_KEYRING, is defined that can be used in lieu of the actual serial number of the calling
process's process keyring.
From the keyctl(1) utility, '@p' can be used instead of a numeric key ID in much the same way, but since keyctl(1) is a program run after
forking, this is of no utility.
A thread created using the clone(2) CLONE_THREAD flag has the same process keyring as the caller of clone(2). When a new process is cre-
ated using fork() it initially has no process keyring. A process's process keyring is cleared on execve(2). The process keyring is
destroyed when the last thread that refers to it terminates.
If a process doesn't have a process keyring when it is accessed, then the process keyring will be created if the keyring is to be modified;
otherwise, the error ENOKEY results.
SEE ALSO
keyctl(1), keyctl(3), keyrings(7), persistent-keyring(7), session-keyring(7), thread-keyring(7), user-keyring(7), user-session-keyring(7)
Linux 2017-03-13 PROCESS-KEYRING(7)