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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unix ps command question

Status
Not open for further replies.

rhymejerky

Programmer
Nov 30, 2004
23
US
Hi,

The ps command has a fixed output size for each line. Is that size changable? Is it compiled into the kernel? Also, is this size OS dependent? Thanks,

Rhyme
 
Not sure what controls the ps command character limit. But, the old ps command in /usr/ucb/ps does not have this limit.

example: /usr/ucb/ps -aux

 
I have the same problem - some of my commands are more than 80 chars in length, so the display gets truncated. I'm looking into the /usr/ucb/ps thing, but I'm not there yet.
 
OK - not sure exactly what you want to do, but here's the solution for a COMMAND that has a path greater than 80 chars:
/usr/ucb/ps -auxww

My COMMAND is a java process, with the CLASSPATH and everything, so it's quite long. This ps command shows the whole thing.....

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top