Well, you didn't get me. When i enter
cat /proc/12860/stat i am getting
12860 (sgroup) S 1 12860 12860 0 -1 0 27230 0 0 0 2877 97 0 0 16 0 1 200 630319606 644042752 27070 18446744073709551615 4194304 64877828 548682069520 18446744073709551615 182909096137 0 0 101208579 1233136892 18446744073709551615 0 0 17 1 0 0
When i look at man /proc/pid/stat:
Status information about the process. This is used by ps(1). It is
defined in /usr/src/linux/fs/proc/array.c.
The fields, in order, with their proper scanf(3) format specifiers,
pid %d The process ID.
comm %s The filename of the executable, in parentheses. This is
visible whether or not the executable is swapped out.
state %c One character from the string "RSDZTW" where R is running,
S is sleeping in an interruptible wait, D is waiting in
uninterruptible disk sleep, Z is zombie, T is traced or
stopped (on a signal), and W is paging.
ppid %d The PID of the parent.
pgrp %d The process group ID of the process.
session %d The session ID of the process.
tty_nr %d The controlling terminal of the process. (The minor device
number is contained in the combination of bits 31 to 20 and
7 to 0; the major device number is in bits 15 t0 8.)
tpgid %d The ID of the foreground process group of the controlling
terminal of the process.
flags %u (%lu before Linux 2.6.22)
The kernel flags word of the process. For bit meanings,
see the PF_* defines in <linux/sched.h>. Details depend on
the kernel version.
and so on.
This elements in man page are not in the same order as they in proc/pid/stat.
How to find out which one is which?