Hi,

Is there any way to enable symbols of WCHAN output from 'ps -l' ?

# ps -al
 F S    UID   PID  PPID   C PRI NI     ADDR     SZ    WCHAN TTY         TIME CMD
 0 S   1500   627   615   0  40 20 d72658a8    793 d7265914 pts/2
 0:00 Xsession
 0 S   1500   615   613   0  40 20 d725c9c8   1265 d725ca34 pts/2
 0:00 ksh93
 0 S   1500   629   627   0  40 20 d725b8b8  14408 d7b080f2 pts/2
 0:01 gnome-se
 0 S   1500   645     1   0  40 20 d725b030   1351 d80ca872 pts/2
 0:00 gnome-ke


I would like to get output like this one (from freebsd):
# ps -al
  UID   PID  PPID CPU PRI NI   VSZ   RSS MWCHAN STAT  TT       TIME COMMAND
    0   829     1   0   5  0  3156  1064 ttyin  Is+   v0    0:00.00
/usr/libexec/getty Pc ttyv0
    0   830     1   0   5  0  3156  1064 ttyin  Is+   v1    0:00.00
/usr/libexec/getty Pc ttyv1
    0   831     1   0   5  0  3156  1064 ttyin  Is+   v2    0:00.00
/usr/libexec/getty Pc ttyv2
    0   832     1   0   5  0  3156  1064 ttyin  Is+   v3    0:00.00
/usr/libexec/getty Pc ttyv3
    0   833     1   0   5  0  3156  1064 ttyin  Is+   v4    0:00.00
/usr/libexec/getty Pc ttyv4
    0   834     1   0   5  0  3156  1064 ttyin  Is+   v5    0:00.00
/usr/libexec/getty Pc ttyv5
    0   835     1   0   5  0  3156  1064 ttyin  Is+   v6    0:00.00
/usr/libexec/getty Pc ttyv6
    0   836     1   0   5  0  3156  1064 ttyin  Is+   v7    0:00.00
/usr/libexec/getty Pc ttyv7
 1001   855   853   0   8  0  3456  1476 wait   Is    p0    0:00.00 -sh (sh)
    0   881   855   0   8  0  3592  1564 wait   I     p0    0:00.01 su
    0   882   881   0  20  0  3472  2208 pause  I     p0    0:00.01 _su (csh)
    0   887   882   0   8  0  3456  1496 wait   I     p0    0:00.00 sh
    0  1006   887   0   8  0  4388  2180 wait   S     p0    0:00.06 bash

Regards

Reply via email to