- 论坛徽章:
- 0
|
自己找到了,感谢eagle\r\n\r\nSolaris下ps如何输出完整的进程名称 \r\n=========================================================== \r\n作者: eagle_fan(http://eagle_fan.itpub.net)\r\n发表于: 2005.10.21 09:35\r\n分类: Solaris \r\n出处: http://eagle_fan.itpub.net/post/461/43596\r\n--------------------------------------------------------------- \r\nSolaris下/usr/bin/ps会截短进程名称,很多时候没法知道完整的进程名称,很不方便。\r\n同事发现/usr/ucb/ps有参数可以显示全名,虽然很简单但是很实用 \r\n-u list processes with username,CPU usage,memory usage, optional\r\n-w list full command line, if command line is very long, then -ww must be used\r\n举例如下:\r\nACC1stby-sjcdb68$> ps -ef |grep rsync |grep -v grep |head -1\r\noracle 6076 6075 0 18:13:38 pts/5 0:00 /usr/bin/rsh smfdb99.smf /export/home/oracle/bin/rsync2 --server -vlogDtprz . /\r\nACC1stby-sjcdb68$> which ps\r\n/usr/bin/ps\r\nACC1stby-sjcdb68$> /usr/ucb/ps -auxww |grep rsync |grep -v grep |head -1\r\noracle 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 |
|