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

ps command - how to get full description 1

Status
Not open for further replies.

RaviPydi

Programmer
Joined
Jul 23, 2004
Messages
4
Location
US
How do I get the complete description of the process listed by ps command on a Solaris box. Here is what I am looking for:

>> ps -ef
UID PID PPID C STIME TTY TIME CMD
root 0 0 0 Aug 27 ? 0:01 sched
root 1 0 0 Aug 27 ? 1:50 /etc/init -
root 2 0 0 Aug 27 ? 0:00 pageout
root 3 0 1 Aug 27 ? 1101:09 fsflush
root 833 1 0 Aug 27 ? 0:00 /usr/lib/saf/sac -t 300
cwadmin 13856 1 0 Sep 01 ? 2:58 /usr/java/bin/../bin/sparc/native_threads/java -DDASHBOARD_HOME=/opt/IBM/ThirdP

For example, the CMD column above for UID cwadmin gives only a partial description of the process and stopped after /IBM/ThirdP. But I would like to get the complete CMD value of that process because I am grepping for a particular pattern at a different point which comes after the /IBM/ThirdP.

If I do the same ps -ef command on AIX, then I am able to see the full length of the CMD. Is there any additional option to use on Solaris???
 
I have prodded ps to do this, buts its implementation dependant and mostly 80 chars long.

I have tried:

ps -eo comm (which gives none of the flags)

and

ps -eo args (which gives 80 chars of the flags)

You can't achieve this from ps.

Can you not insert an $ECHO into the script running the program?

Matthew

The Universe: God's novelty screensaver?
 
Thanks for more inputs. Looks like we cannot achive this from the ps.

But, I did find an alternative specific to Solaris in /usr/ucb/ps

/usr/ucb/ps -algwwwx

This command does give the full description.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top