免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: rabinwang
打印 上一主题 下一主题

solaris 11.1 怎样避免ps 命令参数截断? [复制链接]

论坛徽章:
0
11 [报告]
发表于 2013-11-25 11:08 |只看该作者
/usr/ucb/ps -auxww
这个目录下的ps可以带这几个参数的.

回复 9# rabin.wang


   

论坛徽章:
2
摩羯座
日期:2014-05-26 12:02:462015年辞旧岁徽章
日期:2015-03-03 16:54:15
12 [报告]
发表于 2013-11-28 23:36 |只看该作者
本帖最后由 door10000 于 2013-11-28 23:37 编辑
  1. -bash-4.1$ uname -an
  2. SunOS solaris11 5.11 11.1 i86pc i386 i86pc
复制代码
我这真没这问题。
  1. ps-bash-4.1$ ps -ef
  2.      UID   PID  PPID   C    STIME TTY         TIME CMD
  3.     root     0     0   0 23:34:03 ?           0:01 sched
  4.     root     5     0   0 23:34:01 ?           0:01 zpool-rpool
  5.     root     6     0   0 23:34:06 ?           0:00 kmem_task
  6.     root     1     0   0 23:34:06 ?           0:00 /usr/sbin/init
  7.     root     2     0   0 23:34:06 ?           0:00 pageout
  8.     root     3     0   0 23:34:06 ?           0:00 fsflush
  9.     root     7     0   0 23:34:06 ?           0:00 intrd
  10.     root     8     0   0 23:34:06 ?           0:00 vmtasks
  11.     root   115     1   0 23:34:31 ?           0:00 /usr/lib/pfexecd
  12.     root    11     1   0 23:34:08 ?           0:06 /lib/svc/bin/svc.startd
  13.     root    13     1   0 23:34:08 ?           0:19 /lib/svc/bin/svc.configd
  14.     root   776     1   0 23:34:57 ?           0:00 /usr/sbin/console-kit-daemon
  15.     root   848   781   0 23:35:01 ?           0:00 /usr/lib/hal/hald-addon-cpufreq
  16.   netcfg    40     1   0 23:34:18 ?           0:00 /lib/inet/netcfgd
  17.      gdm  1371  1346   1 23:35:42 ?           0:00 gnome-power-manager
  18.    dladm    58     1   0 23:34:22 ?           0:00 /usr/sbin/dlmgmtd
  19.   daemon    82     1   0 23:34:26 ?           0:00 /lib/crypto/kcfd
  20.     root   780     1   0 23:34:58 ?           0:00 /usr/lib/hal/hald --daemon=yes
  21.   netadm    92     1   0 23:34:27 ?           0:00 /lib/inet/ipmgmtd
  22.     root   104     1   0 23:34:28 ?           0:00 /lib/inet/in.mpathd
  23.   netadm   553     1   0 23:34:44 ?           0:00 /lib/inet/nwamd
  24.     root   863     1   0 23:35:03 ?           0:00 /usr/lib/rmvolmgr -s
  25.     root   932     1   0 23:35:13 vt/1        0:00 /usr/lib/vtdaemon -c 16
  26.      gdm  1359     1   1 23:35:34 ?           0:00 /usr/lib/gconfd-2
  27.     root   905     1   0 23:35:12 ?           0:00 /usr/sbin/auditd
  28.     root   850     1   0 23:35:01 ?           0:00 /usr/lib/ssh/sshd
  29.     root   874     1   0 23:35:08 ?           0:00 /sbin/dhcpagent
  30.     root   936    11   0 23:35:13 vt/3        0:00 /usr/sbin/ttymon -g -d /dev/vt/3 -l console -m ldterm,ttcompat -h -p solaris11
  31.     root   781   780   0 23:34:58 ?           0:00 hald-runner
  32.     root   869     1   0 23:35:05 ?           0:00 /usr/lib/devchassis/devchassisd
  33.     root   763     1   0 23:34:55 ?           0:00 /usr/sbin/cron
  34.     root   811     1   0 23:35:00 ?           0:00 /usr/lib/inet/inetd start
  35.     root   814   812   0 23:35:00 ?           0:00 /usr/lib/autofs/automountd
  36.     root   812     1   0 23:35:00 ?           0:00 /usr/lib/autofs/automountd
  37.     root   698     1   0 23:34:50 ?           0:00 /usr/sbin/nscd
  38.     root   216     1   0 23:34:34 ?           0:00 /usr/lib/rad/rad -sp
  39.     root  1159   850   0 23:35:21 ?           0:00 /usr/lib/ssh/sshd
  40.     root   160     1   0 23:34:33 ?           0:00 /usr/lib/utmpd
  41.     root   877     1   0 23:35:09 ?           0:00 /usr/lib/inet/in.ndpd
  42.     root   852   781   0 23:35:01 ?           0:00 /usr/lib/hal/hald-addon-acpi
  43.     root   329     1   0 23:34:37 ?           0:00 /usr/lib/devfsadm/devfsadmd
  44.     root   887     1   0 23:35:12 ?           0:00 /usr/sbin/syslogd
  45.     root  1114  1099   1 23:35:18 vt/7        0:00 /usr/bin/Xorg :0 -nolisten tcp -br -novtswitch -auth /tmp/gdm-auth-cookies-g6ay
  46.     root   580     1   0 23:34:47 ?           0:00 /usr/lib/picl/picld
  47.     root   906    11   0 23:35:12 console     0:00 /usr/sbin/ttymon -g -d /dev/console -l console -T sun-color -m ldterm,ttcompat
  48.     root   170     1   0 23:34:33 ?           0:00 /usr/sbin/vbiosd
  49.     root   555     1   0 23:34:44 ?           0:00 /usr/lib/rcm/rcm_daemon
  50.     root   186     1   0 23:34:33 ?           0:00 /usr/lib/zones/zonestatd
  51.     root   720     1   0 23:34:51 ?           0:00 /lib/svc/method/iscsid
  52.     root   191     1   0 23:34:34 ?           0:00 /usr/lib/sysevent/syseventd
  53.     root   851     1   0 23:35:01 ?           0:01 /usr/lib/fm/fmd/fmd
  54.    smmsp  1136     1   0 23:35:19 ?           0:00 /usr/lib/sendmail -Ac -q15m
  55.      gdm  1367  1346   0 23:35:39 ?           0:00 metacity
  56.     root   957    11   0 23:35:13 vt/2        0:00 /usr/sbin/ttymon -g -d /dev/vt/2 -l console -m ldterm,ttcompat -h -p solaris11
  57.   daemon   800     1   0 23:34:59 ?           0:00 /usr/sbin/rpcbind
  58.     root   294     1   0 23:34:36 ?           0:00 /usr/lib/dbus-daemon --system
  59.      gdm  1366     1   0 23:35:38 ?           0:00 /usr/lib/gvfsd
  60.      gdm  1342     1   0 23:35:29 ?           0:00 /usr/bin/dbus-launch --exit-with-session
  61.     root   935    11   0 23:35:13 vt/5        0:00 /usr/sbin/ttymon -g -d /dev/vt/5 -l console -m ldterm,ttcompat -h -p solaris11
  62.     root  1073  1067   0 23:35:14 ?           0:00 sort -u
  63.     root   938    11   0 23:35:13 vt/6        0:00 /usr/sbin/ttymon -g -d /dev/vt/6 -l console -m ldterm,ttcompat -h -p solaris11
  64.     root  1156     1   0 23:35:20 ?           0:00 /usr/sbin/cupsd -C /etc/cups/cupsd.conf
  65.   oracle  1163  1159   0 23:35:21 ?           0:00 /usr/lib/ssh/sshd
  66.     root  1051     1   0 23:35:14 ?           0:00 /usr/sbin/gdm-binary
  67.     root  1099  1051   0 23:35:16 ?           0:00 /usr/lib/gdm-simple-slave --display-id /org/gnome/DisplayManager/Display1
  68. noaccess  1076     1   0 23:35:14 ?           0:00 /usr/lib/fm/notify/asr-notify
  69.     root   979    11   0 23:35:13 vt/4        0:00 /usr/sbin/ttymon -g -d /dev/vt/4 -l console -m ldterm,ttcompat -h -p solaris11
  70.      gdm  1343     1   0 23:35:30 ?           0:00 /usr/lib/dbus-daemon --fork --print-pid 6 --print-address 8 --session
  71. noaccess  1047     1   0 23:35:13 ?           0:00 /usr/lib/fm/notify/smtp-notify
  72.     root  1067  1055   0 23:35:14 ?           0:00 /bin/bash /lib/svc/method/svc-texinfo-update start
  73.     root  1315  1194   2 23:35:28 ?           0:02 /usr/java/jre/bin/java -Xmx220m -DTZ=localtime -DCCR_CONFIG_HOME=/var/ocm/ccr -
  74.      gdm  1346  1099   0 23:35:30 ?           0:00 /usr/bin/gnome-session --autostart=/usr/share/gdm/autostart/LoginWindow/
  75.      gdm  1362     1   2 23:35:36 ?           0:01 /usr/lib/gnome-settings-daemon --gconf-prefix=/apps/gdm/simple-greeter/settings
  76.     root  1055    11   0 23:35:14 ?           0:00 /bin/bash /lib/svc/method/svc-texinfo-update start
  77.   oracle  1380  1373   0 23:35:47 pts/1       0:00 ps -ef
  78.      gdm  1361  1346   0 23:35:36 ?           0:00 /usr/lib/at-spi-registryd
  79.     root  1070  1067   5 23:35:14 ?           0:04 /usr/bin/python2.6 /usr/bin/pkg search -H -l -o path :link:path:*/info/dir
  80.     root  1194     1   0 23:35:26 ?           0:00 /bin/sh /usr/lib/ocm/ccr/bin/emCCR.bin start
  81.     root  1061     1   0 23:35:14 ?           0:00 /usr/lib/sendmail -bl -q15m
  82.      gdm  1370  1346   1 23:35:42 ?           0:00 /usr/lib/gdm-simple-greeter
  83.      gdm  1364     1   0 23:35:37 ?           0:00 /usr/lib/bonobo-activation-server --ac-activate --ior-output-fd=19
  84.     root  1372  1099   0 23:35:42 ?           0:00 /usr/lib/gdm-session-worker
  85.   oracle  1373  1163   0 23:35:43 pts/1       0:00 -bash
  86. -bash-4.1$
复制代码

论坛徽章:
0
13 [报告]
发表于 2013-12-19 11:25 |只看该作者
看我的,,,,,,参数整齐的被截断成只能显示79个字符
root@xx-app:# pgrep -lf java

18672 java -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -server -Xms1g -X
1677 /usr/bin/java -Djava.util.logging.config.file=/software/apache-tomcat-6.0.35/co
7912 /usr/bin/java -Djava.util.logging.config.file=/usr/apache-tomcat/conf/logging.p
21799 java -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -server -Xms1g -X

论坛徽章:
0
14 [报告]
发表于 2013-12-19 11:28 |只看该作者
root@mysql-app:/proc/21799# uname -a
SunOS mysql-app 5.11 11.1 sun4v sparc sun4v

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
15 [报告]
发表于 2013-12-19 12:30 |只看该作者
/usr/ucb/ps -auxww
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP