Solaris 10: "ps -ef" command length is too long; missing required information

Hello,
Can you please help me to tune "ps -ef" command output; it is not displaying the complete command; so that I am missing my actual program name. "ps -ef" is not actually printing "/gp46-tomcat] (my program name); is there any way to cut "/usr/jdk/latest/bin" so that I can read my program name in "ps -ef" output; I greatly appreciate your help. Thanks

soaadmin@soa-prod-as1: ps -ef | pg
     UID   PID  PPID   C    STIME TTY         TIME CMD
    root     0     0   0   Apr 07 ?           0:45 sched
    root     1     0   0   Apr 07 ?           0:05 /sbin/init
    root     2     0   0   Apr 07 ?           0:00 pageout
soaadmin  3751     1   0 12:01:13 pts/1       2:33 /usr/jdk/latest/bin/java -Djava.util.logging.config.file=/app/ui_home/as2-group  [/gp46-tomcat]


sriramAsked:
Who is Participating?
 
woolmilkporcCommented:
Hi,

try

ps axwww

wmp

0
 
Ramakanta SahooCommented:
use:

/usr/ucb/ps -auxww | grep -i java | grep gp46
0
 
sriramAuthor Commented:
Thank You -

I have to use /usr/ucb/ps -awxx (Berkley)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.