Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

question on ps -ef

Status
Not open for further replies.

sunilprao

MIS
Jun 20, 2000
21
IN
All,

I have been trying to get an answer to this for quiet sometime but not able to.

when I run ps -ef, the line output gets truncated at the end...as shown in example below where I would not know what is the complete command execution , as it gets truncated after /oracle/pr

Anyone can help me with this?

Any help is greatly appreciated.

Thanks
Sunil

bash-2.03$ ps -ef | grep java
wls 1248 1 0 18:19:07 ? 0:17 /opt/bea/jdk131/bin/../bin/sparc/native_threads/java -classpath /home/oracle/pr
 
I see the same output from the console also. I believe there is a way to view the complete line.
 
The args as shown are truncated by Solaris to the first 80 characters (see the man page for ps). There doesn't seem to be any way around it within Solaris.
 
It's not a Solaris thing. I can see the entire line, wrapped to the next line when long enough. I just needed to turn on Autowrap in my terminal emulator, which is Reflections.

You might also play with the following commands...
[tt]
stty stwrap
stty -stwrap
[/tt]
See the man page for stty for more info.
 
Mine does wrap, but the COMMAND field itself is also truncated to 80 characters.

I used /usr/ucb/ps www pid in this situation. Or /usr/ucb/ps uaxwww if I'm looking at all processes. Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top