Unrecognized ps field [SOLVED]

I’d like to do some simple profiling on some processes using ‘ps’.

I tried using: ps -p PID -o tid,state,psched but when I do I get Unrecognized field name for option -o.

Apparently, it doesn’t recognize the fields ‘state’ and ‘psched’. What am I doing wrong?

P.S.: Using 6.6.

My guess is that ps is included for reasons of Posix compatibility. When it was ported, it was probably done with minimal attention, and it may just be that Posix state and psched didn’t translate well.

I recommend you take a look at the pidin utility, which is native to QNX.


… thanks. ;)