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.

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

Reply via email to