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.