免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3811 | 回复: 2
打印 上一主题 下一主题

solaries下查看进程的完整启动的命令行 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-27 15:22 |只看该作者 |倒序浏览
启动java的一个脚本,启动的时候,因为虚拟机的参数比较多,想查看启动了设置上了没有,没有找到可以查看全的命令,那位大侠知道,谢谢。

论坛徽章:
0
2 [报告]
发表于 2008-11-27 15:58 |只看该作者
自己找到了,感谢eagle

Solaris下ps如何输出完整的进程名称
===========================================================
作者: eagle_fan(http://eagle_fan.itpub.net)
发表于: 2005.10.21 09:35
分类: Solaris
出处: http://eagle_fan.itpub.net/post/461/43596
---------------------------------------------------------------
Solaris下/usr/bin/ps会截短进程名称,很多时候没法知道完整的进程名称,很不方便。
同事发现/usr/ucb/ps有参数可以显示全名,虽然很简单但是很实用
-u list processes with username,CPU usage,memory usage, optional
-w list full command line, if command line is very long, then -ww must be used
举例如下:
ACC1stby-sjcdb68$> ps -ef |grep rsync |grep -v grep |head -1
oracle 6076 6075 0 18:13:38 pts/5 0:00 /usr/bin/rsh smfdb99.smf /export/home/oracle/bin/rsync2 --server -vlogDtprz . /
ACC1stby-sjcdb68$> which ps
/usr/bin/ps
ACC1stby-sjcdb68$> /usr/ucb/ps -auxww |grep rsync |grep -v grep |head -1
oracle 6977 3.8 0.0 3184 2240 pts/5 S 18:29:08 1:31 /export/home/oracle/bin/rsync2 -alvz --progress /oracle/ACC1/data14/.accaccdpre05kh.dbf xxxxx.xx:/oracle/ACC1/data14/.accaccdpre05kh.dbf

论坛徽章:
0
3 [报告]
发表于 2008-11-28 10:25 |只看该作者
不错
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP