Link to home
Start Free TrialLog in
Avatar of sriram
sriram

asked on

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]


ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
use:

/usr/ucb/ps -auxww | grep -i java | grep gp46
Avatar of sriram
sriram

ASKER

Thank You -

I have to use /usr/ucb/ps -awxx (Berkley)