Operating System - HP-UX
1820227 Members
3617 Online
109620 Solutions
New Discussion юеВ

Re: How to display complete process parameters info by PS command?

 
SOLVED
Go to solution
forcerick
Occasional Advisor

How to display complete process parameters info by PS command?

Hi, I use "ps -ef" command, I found the display infomation about args has been cut,
so long exceute command cannot be displayed completed, for example:
I execute a process: /export/disk1/p2/gyomu/jwu/flowtest/sdb001 -conf /export/disk1/p2/gyomu/jwu/flowtest/sdb001.cfg -sid 5
then use command: ps -ef |grep sdb001
it output:
ps -ef |grep sdb001|grep -v grep
gyomu 13826 1 0 14:10:16 pts/ty 0:03 /export/disk1/p2/gyomu/jwu/flowtest/sdb001 -conf /export/dis
so some parts was cut..
4 REPLIES 4
Alex Green
Frequent Advisor

Re: How to display complete process parameters info by PS command?

try this ps -elf

\Hope this helps
"The physicist's greatest tool is his wastebasket." - Albert Einstein.
Animesh Chakraborty
Honored Contributor

Re: How to display complete process parameters info by PS command?

Hi,
Set your screen to 132 column.
This can be done by changing the terminal emulation software you are using like exceeds etc.
Did you take a backup?
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: How to display complete process parameters info by PS command?

Hi:

If you man ps you will find "Only a subset of the command line is saved by the kernel; as much of the command line will be displayed as is available". You get what you get and no more.

Regards, Clay
If it ain't broke, I can fix that.
forcerick
Occasional Advisor

Re: How to display complete process parameters info by PS command?

Clay, Thanks, so as ps man manual said, cannot get complete command line, it seemed no any to help me get all complete command line for all processes in current system.

Regards