hex has been the default because there were some other ms tools 
that listed hex nt pids

probably the most visible ms tool one is the task manager, and it lists dec pids

so ps will switch the default to decimal in a future release

until then you can use --format for finer control

        --format=$'%4(ntpid)u %(state)c %7(pid)u %7(ppid)u %6(time)s %(cmd)s'

(note that with --tree there is a formatting bug that lists branches
 as " \\_ " instead of " \_ " -- I have the fixes for this and the default dec 
pid
 in place, but not released yet)

On Tue, 9 Feb 2010 17:56:12 +0100 Yves Crespin wrote:
> The default format of ntpid in ps command is hexa.
> IMO it have to be in base 10.

> $ ps -t tty10 -o pid,ntpid,cmd
>     PID  NPID CMD
>   15104   c28 -ksh
>  139554  1108 sort
>  152557  129c /usr/bin/ksh 
> /PDM/TestCases/TestCase_Basic_ListMyPARTExtractFile.
> sh
>  143258  117c ./TestCase.sh
> $ uname -a
> UWIN-XP Jeolikote 4.5/5.1 2010-02-04 i686 i686 32/32 UWIN

> Yves
> _______________________________________________
> uwin-users mailing list
> [email protected]
> https://mailman.research.att.com/mailman/listinfo/uwin-users

_______________________________________________
uwin-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/uwin-users

Reply via email to