nbkd72e
asked on
How to get the full process command line on Solaris 10
On Solaris 8, the full command can be obtained like this:
/usr/ucb/ps -avxww
But this doesn't seem to work on Solaris 10.
/usr/ucb/ps -avxww
But this doesn't seem to work on Solaris 10.
ASKER
They only show the truncated command lines of the processes. What I need is to see the full command line.
You could customize the output of ps using the -o option.
-o args gives the complete command including all arguments, afaik.
Choose additional output fields as you desire.
-o args gives the complete command including all arguments, afaik.
Choose additional output fields as you desire.
ASKER
I want to see all the args of the command, as we have many processes started by the same program with different parameters. It is really hard to tell which pid is for which application w/o knowning all the args.
The Solaris impl of "ps -o args" limits the output to 80 bytes. On Solaris 8, the command "/usr/ucb/ps -avxww" provides the whole args details.
The Solaris impl of "ps -o args" limits the output to 80 bytes. On Solaris 8, the command "/usr/ucb/ps -avxww" provides the whole args details.
ps -ef show the full process command line. What type of terminal are you connecting from?
Hi
In order to have Solaris 8/9 functionality of ps check the below article. You need to tweak ps a little bit to have that full functionality :
http://linuxshellaccount.blogspot.com/2007/12/old-style-ps-on-solaris-10.html
In order to have Solaris 8/9 functionality of ps check the below article. You need to tweak ps a little bit to have that full functionality :
http://linuxshellaccount.blogspot.com/2007/12/old-style-ps-on-solaris-10.html
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the help. The "u" instead of "v" really makes the difference in Solaris 10.
ASKER
Sorry, let me take it back. It doesn't make too much differences between "u" and "v". Instead, it works by default when run as "root". Yesterday when I verified the "u" solution, I was accidentally running as "root" on the machine. I didn't try the "v" one as I was so excited to see it work.
I googled and found the following link which well explained the mystery:
http://www.unixforum.co.uk/index.php?s=ef50e74f209a8e5e626e153f8bf45120&showtopic=28097&pid=30064&mode=threaded&start=#entry30064
I googled and found the following link which well explained the mystery:
http://www.unixforum.co.uk/index.php?s=ef50e74f209a8e5e626e153f8bf45120&showtopic=28097&pid=30064&mode=threaded&start=#entry30064
wmp