ps command listing

Hi,

The ps -ef command truncates the command line of the process.

I tried running the /usr/ucb/ps command (/usr/ucb/ps -auwwx). It works in most of my test environments, but in my production environment even this command truncates the command line to a max 80 characters.

How can I get the full command line?

[333 byte] By [doshiaj] at [2007-11-26 9:27:39]
# 1

/usr/ucb/ps has two versions. A 32 bit and a 64 bit. If you are getting proc errors when doing the /usr/ucb/ps - auwwx, you have to upgrade to the 64 bit version. It will produce lines and lines of process information.

It is quite common for Sybase systems to purposely not put in the 64 bit version due to isql requiring the password being in plain text.

You should be aware that /usr/ucb/ps wont be on Solaris forever. It is backwardly compatible for the old SunOS days.

Stephen

stephen2602 at 2007-7-7 0:07:46 > top of Java-index,General,Sys Admin Best Practices...
# 2
Ok thanks for that info ... I was not aware that this command is not going to be there in future ... In that case, is there any alternative of that command, that I can use to get the full command listing (the entire command and all the arguments)?
doshiaj at 2007-7-7 0:07:46 > top of Java-index,General,Sys Admin Best Practices...
# 3
Hi,I think /usr/scb/ps will truncate the output if you dont have the correct user credentials - do you get the full output as root?
frebhed at 2007-7-7 0:07:46 > top of Java-index,General,Sys Admin Best Practices...
# 4
I don't have root priviledges, so I can't check from root.But I'm sure there should be some way to modify this output ... thats want I am trying to figure out...
doshiaj at 2007-7-7 0:07:46 > top of Java-index,General,Sys Admin Best Practices...
# 5

The Opensolaris bug database has a few entries for this issue.

All are marked closed with no patches in the works.

Resolution:

Submit an RFE with Sun and hope they work on it.

Use the ucb version with the caveats already listed.

Change the code yourself. Get the code from opensolaris.

alan

alan_pae at 2007-7-7 0:07:46 > top of Java-index,General,Sys Admin Best Practices...