Skip navigation.
Home
The QNX Community Portal

View topic - Unrecognized ps field [SOLVED]

Page 1 of 1

Unrecognized ps field [SOLVED]

PostPosted: Sun May 03, 2015 2:18 pm
by tedyy42
I'd like to do some simple profiling on some processes using 'ps'.

I tried using:
Code: Select all
 ps -p PID -o tid,state,psched
but when I do I get
Code: Select all
 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.

Re: Unrecognized ps field

PostPosted: Sun May 03, 2015 7:06 pm
by maschoen
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.

Mitchell

Re: Unrecognized ps field

PostPosted: Mon May 04, 2015 2:01 pm
by tedyy42
.. thanks. ;)