Bugtraq mailing list archives

Re: Breaking in from the monitor at the console


From: jco () bbn com (John C. Orthoefer)
Date: Wed, 01 Jun 1994 09:17:11 -0400


Someone just asked me:
[where is pstat on solaris]

Well pstat to best of my knowlege doesn't exist on solaris 2.x boxs.
So there is no way to get the begining of the proc table.  Well not
quite.  The System V ps does give you the start of the proc struct for
a process.

a-girl> ps -lfp $$ | more
 F S      UID   PID  PPID  C PRI NI     ADDR     SZ    WCHAN    STIME
TTY
 TIME COMD
 8 S      jco  5718  5716 80   1 20 ff5d7800    213 ff5d79c8 09:01:09
pts/10
 0:01 -csh      

So I guess one more line needs to be changed to make fc-4.1.3 into
fc-5.3.

procp=`ps -lfp $1 | tail -1 | cut -f9`
-
John Orthoefer   | The options described above interact with each  
<jco () bbn com>    | other in strange and as yet to be defined ways.
617-873-6188     |              -- BUGS section of the pr man page



Current thread: