当前位置: 代码迷 >> Solaris >> Solaris怎么显示完整的命令行信息出来
  详细解决方案

Solaris怎么显示完整的命令行信息出来

热度:2663   发布时间:2013-02-26 00:00:00.0
Solaris如何显示完整的命令行信息出来?
现在只是显示一段就没有了,被裁掉了一部分。
ps -ef | grep username
典型的WebLogic启动后,显示不全,如下
username 14035 14034  0 10:57:38 pts/3    0:00 /bin/sh /export/home/user_project/domains/myserver/bin/startWebLogic.s
1 楼 iunknown 2007-05-15  
man ps   STANDARD FORMAT SPECIFIERS       These may be used to control both output format and sorting.       For example:  ps -eo pid,user,args --sort user       CODE          HEADER       %cpu          %CPU       %mem          %MEM       alarm         ALARM       args          COMMAND


btw:LZ的头像很像读书时军训的教官, 
2 楼 YuLimin 2007-05-15  
环境再说明一下,Solaris 9,bash 2.0.5

bash-2.05$ more /etc/release

Solaris 9 9/04 s9s_u7wos_09 SPARC
Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
Use is subject to license terms.
Assembled 29 June 2004
3 楼 YuLimin 2007-05-16  
Solaris 10 bash 3.0一样没有
bash-3.00$ more /etc/release
Solaris 10 6/06 s10s_u2wos_09a SPARC
Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
Use is subject to license terms.
Assembled 09 June 2006

这个问题有两种方式解决方案
1、/usr/ucb/ps -auwxx

2、JDK 5.0及以上的 jps 命令 jps -lv
usage: jps [-help]
       jps [-q] [-mlvV] [<hostid>]

Definitions:
    <hostid>:      <hostname>[:<port>]