cancel
Showing results for 
Search instead for 
Did you mean: 

process status

 
himacs
Super Advisor

process status

Hi Admins,

I want to know one particular process status.top tools showing nothing of the same.Please suggest on the same.

Regards
Pavan

9 REPLIES
Laurent Menase
Honored Contributor

Re: process status

glance?
himacs
Super Advisor

Re: process status

Hi Laurent,

Thanks for the response.

Unfortunately glance not available.But when ps -efl shows process status as 'S'[2nd flag in output].But how can we find that whether its sleeping or stopped and whats the reason for the same.

Regards
himacs
Hakki Aydin Ucar
Honored Contributor

Re: process status

you can try ;
# ps -el |more
himacs
Super Advisor

Re: process status

Hi Hakki,

I have already tried with ps -el and found process is in S status.Now tell me whehter S means stopped or sleeping.In either case how to know the reason for the same.How to get history of a particular process.

Please help me on this.

Regards
Pavan
Mounaam
Trusted Contributor

Re: process status

Hi,

S is for Sleeping
T is for sTopped
(full list in ps(1))

If you want more details you can try:
- tusc for the current syscall
- pstack/gdb for the process stack.

Regards,
Mounaam
James R. Ferguson
Acclaimed Contributor

Re: process status

Hi:

> Now tell me whether S means stopped or sleeping

You need to learn to consult the manpages. You might be surprised by the amount of information that's there.

...JRF...
Hakki Aydin Ucar
Honored Contributor

Re: process status

in addition like other said already;

S means; State of the process (running,sleeping, stopped, etc.).

R : Running
S : Sleeping ..
INH
Regular Advisor

Re: process status

Pavan,

1) ps -ef > psout.txt.
more or vi psout.txt to search required processes name

2) # ps -ef |more

3) man ps <-- this will definately help you

4) If you are running HPUX then try glance and follow the screen

HTH

Regards,
INH
Knowledge is power
Taifur
Respected Contributor

Re: process status


Hi,


To get detail you need glance.
You can install it for a trial period no charge.

The best tool would be ps using the XPG4 behavior.
e.g.

UNIX95= ps -e -o comm,stime,vsz,pcpu

Man ps for details.

Cheers//
Taifur