Thanks for everybody's answers... :)
R.
On Jun 20, 2008, at 10:03 AM, Rudolf Sykora wrote:They're called "note groups" and the noteid file of each process has the number. So if you call 6 lines of rc and 5 lines of awk simple, then yes!
Hello,
is there any simple way how to identify processes belonging to one concrete process group?
{
for(i in /proc/*)
if(! ~ $i /proc/trace)
echo `{cat $i/noteid}:`{basename $i}
} | sort -t: -n | awk '
# based on squash by jon bentley from programming pearls 1st edition
BEGIN { FS = ":" }
$1 != prev { prev = $1; if(NR > 1) printf "\n"; printf "%d: ", $1 }
{ printf "%d ", $2 }
END { printf "\n" }Work with the code I gave you and /sys/src/cmd/ps.c.
'
Is there anything like pstree in plan9?
Pietro