Linux Operating System (MOSC)

MOSC Banner

top -b to include P (cpu thread)

Hi all,

I would like to use top in BATCH mode to show processes running on which cpu.

I tried top -b -o P, but it does not work, -o is for sorting field.

top -b gives   PID USER   PR NI  VIRT  RES  SHR S %CPU %MEM   TIME+ COMMAND

but I want to add field P = Last Used Cpu (SMP)

  PID USER   PR NI  VIRT  RES  SHR S %CPU P %MEM   TIME+ COMMAND

This can be done with interactive mode. Is there any option in batch mode that can do the same?


Thanks for your help.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center