Skip navigation.
Home
The QNX Community Portal

View topic - Unrecognized ps field [SOLVED]

Unrecognized ps field [SOLVED]

Discussion about the QNX6 OS.

Unrecognized ps field [SOLVED]

Postby tedyy42 » Sun May 03, 2015 2:18 pm

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.
Last edited by tedyy42 on Fri May 15, 2015 4:21 pm, edited 1 time in total.
tedyy42
New Member
 
Posts: 6
Joined: Thu Apr 30, 2015 5:49 pm

Re: Unrecognized ps field

Postby maschoen » Sun May 03, 2015 7:06 pm

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
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Re: Unrecognized ps field

Postby tedyy42 » Mon May 04, 2015 2:01 pm

.. thanks. ;)
tedyy42
New Member
 
Posts: 6
Joined: Thu Apr 30, 2015 5:49 pm


Return to QNX6 - OS

Who is online

Users browsing this forum: No registered users and 1 guest