1748123 Members
3410 Online
108758 Solutions
New Discussion юеВ

TOP output

 
SOLVED
Go to solution
Bruno Vilardo
Regular Advisor

TOP output

Hello all,

How do i know which process have been stopped ?
Because when i run TOP it shows me the processes , cpu usage and so on .
But it also says 2 processess stopped.
Thanks
Bruno
3 REPLIES 3
Nicolas Dumeige
Esteemed Contributor
Solution

Re: TOP output

Hello Bruno

The filed you're looking for is state.
It's also an option of ps
# ps -o s

If you are the owner of the process, try :
# jobs

Cheers

All different, all Unix
Johan Brusche
Honored Contributor

Re: TOP output

Bruno,

Stopped processes are those on which the user has typed a CTRL^Z while it was still executing.
Use "ps auxww | grep T", and look for those marked with a " T " under the state column as shown below:(if the proportional font doesn't mess with the formatting to much)

# ps auxww | grep T
USER PID %CPU %MEM VSZ RSS TTY S STARTED TIME COMMAND
root 433333 0.0 0.0 2.29M 232K pts/2 S + 22:01:39 0:00.01 grep T
root 401990 0.0 0.0 2.09M 240K pts/2 T 21:56:05 0:00.02 cat log4

Cheers,
Johan.

_JB_
Bruno Vilardo
Regular Advisor

Re: TOP output

Thanks a lot guys for clearing my mind .

I appreciate

Bruno