from man page of ps :
   STANDARD FORMAT SPECIFIERS
       These may be used to control both output format and sorting.
       For example:  ps -eo pid,user,args --sort user

       CODE          HEADER
...........................
..........................
       start_stack   STACKP
       start_time    START
       stat              STAT
       state            S---------------------here is our state.
       stime           STIME
       suid             SUID
............................
...........................

and also from same page :

   PROCESS STATE CODES
       D   uninterruptible sleep (usually IO)
       R   runnable (on run queue)
       S   sleeping
       T   traced or stopped
       Z   a defunct ("zombie") process

       For BSD formats and when the "stat" keyword is used, additional letters may be 
displayed:
       W   has no resident pages
       <   high-priority process
       N   low-priority task
       L   has pages locked into memory (for real-time and custom IO)

so thats it, this is the state of the process......



Richard Adams wrote:

> On Thu, 20 Jan 2000,  Gaurav Yadav wrote about,  Re: Detecting Zombies running on 
>the system?:
> > Thanks for telling me how to get zombies without having pages of output ( using 
>top ) but there is
> > a question that
> >
> > F S   UID   PID  PPID  C PRI  NI ADDR    SZ WCHAN  TTY     TIME CMD
> >    |-|
> > what is this S denoting.....
> >                                                                                 - 
>GAURAV.
>
> To be honest i dont know.
>
> > Richard Adams wrote:
> >
> > > On Wed, 19 Jan 2000,  Gaurav Yadav wrote about,  Re: Detecting Zombies running 
>on the system?:
> > > > Hi ( I am new joinee to this list)!
> > > >     Well on solaris we can do this
> > > >
> > > > ps -al | grep UID ; ps -elf | grep " Z "
> > > >
> > > > well first command is for beautification
> > > >
> > > > ps -elf | grep " Z "                            ( command to type on command
> > > > line )
> > >
> > > I dont think the above will give you what you are looking for, why not.?
> > >
> > > ps -al  | grep UID returns
> > >
> > > F S   UID   PID  PPID  C PRI  NI ADDR    SZ WCHAN  TTY     TIME CMD
> > >
> > > Note there is no "STAT" field
> > >
> > > Your example will work when ps is given -a  first  for the headers and to
> > > exclude the output of grep itself (your example will always return one line
> > > from grep -Z) , use;
> > >
> > > ps -a | grep PID ; ps -aux | grep -v grep | grep Z
> > >
> > > No return means then No Zombies.
> > >
> > > But why use ps anyway with all the pipes and quotes, just type "top".
> > > On its second line of output it tells you everything you need to know about
> > > running processes including zombies.
> > >
> > > If one does not want a screen full of output from top use;
> > >
> > > top -n1 | head -n2
> > >
> > > Thats all.
> > >
> > > Of course the idea is very nice indeed, just the options choosen do not show
> > > you what you think.
> > >
> > > > Jack Barnett wrote:
> > > >
> > > > > Is there anyways to detect any Zombie processes running on the system?  Is
> > > > > there a way to grep for em in the `ps aux` output?
> > > > >
> > > > > Jack
> > > >
> > > > --
> > > > |-------------------------------------------------|
> > > > |                    GAURAV                       |
> > > > |-------------------------------------------------|
> > > > | Please feel free to                             |
> > > > | mailto:[EMAIL PROTECTED] (Office Email-id) |
> > > > | or (at Other Email-ids)                         |
> > > > | mailto:[EMAIL PROTECTED]                   |
> > > > | mailto:[EMAIL PROTECTED]                     |
> > > > |-------------------------------------------------|
> > > > |    L  o  v  e  r     o  f     1  I  N  U  X     |
> > > > |     Open Invit to all....to talk on 1INUX       |
> > > > |-------------------------------------------------|
> > > --
> > > Regards Richard
> > > [EMAIL PROTECTED]
> > > http://people.zeelandnet.nl/pa3gcu/
> > > Happy New Year
> --
> Regards Richard
> [EMAIL PROTECTED]
> http://people.zeelandnet.nl/pa3gcu/
> Happy New Year

--
|-------------------------------------------------|
|                    GAURAV                       |
|-------------------------------------------------|
| Please feel free to                             |
| mailto:[EMAIL PROTECTED] (Office Email-id) |
| or (at Other Email-ids)                         |
| mailto:[EMAIL PROTECTED]                   |
| mailto:[EMAIL PROTECTED]                     |
|-------------------------------------------------|
|    L  o  v  e  r     o  f     1  I  N  U  X     |
|     Open Invit to all....to talk on 1INUX       |
|-------------------------------------------------|

Reply via email to