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 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>]