## example     pidstat 34      
## takes a PID and outputs a verbosified /kernel/PID/stat


get /.pro/$1/stat | exchange " " "\n" > /.tm/prostat_$1

paste /.tm/prostat_$1 -  <<end_of_heredoc
		Process ID
		COMMMAND
		STATE
		Parent's PID
		Process Group ID
		Session ID
		tty
		process GID of owner of this tty
		flags (math, trace)
		minor page faults
		minor page faults including children's
		major page faults needing disk	
		   ditto, including children's
		user mode jiffies	
		kernel mode jiffies
		user mode jiffies including children	
		kernel mode jiffies including children
		time slice remaining
		priority, nice value + 15
		timeout period
		jiffies before interval timer signal
		jiffies between boot and process start
		virtual memory size
		pages in real mem, minus 3
	limit on above in bytes
	The address above which program text can run
	The address below which program text can run
	The address of the start of the stack
	effective stack pointer from stack page
	current instruction pointer
		The bitmap of pending signals (usually 0)
		The bitmap of ignored signals
		The bitmap of catched signals
	ps "channel" in which the process is waiting. 
			unknowns	

end_of_heredoc

rm /.tm/prostat_$1

