Operating System - HP-UX
1753519 Members
5129 Online
108795 Solutions
New Discussion юеВ

full process command line

 
Pongthep Dokyam
New Member

full process command line

I use "/usr/ucb/ps -auxww" to get process id and it full command line to find my java process and kill it in Solaris. but I can't do this is on HP-UX.
I can't use "ps -ef" because my java process have very long command line such "/local/abc/def/ghi/..../java -classpath /local/...abc:/local/...abcdef:/local/...abcghi -Dabc MainClass -I /usr/.."
so, the command line returned from "ps -ef" command was truncated befor MainClass.

My system has many java process that their command line start with the same, it difference only MainClass.
How can I find the pid of each process ?
4 REPLIES 4
Stefan Farrelly
Honored Contributor

Re: full process command line

Try using lsof to identify your process by login id, or IP.

You may need to download and install it;

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.64/

Im from Palmerston North, New Zealand, but somehow ended up in London...
Ravi_8
Honored Contributor

Re: full process command line

Hi,

$/usr/bin/ps -aef
never give up
Steve Steel
Honored Contributor

Re: full process command line

Hi

try

UNIX95= ps -e -opid -o args


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
James R. Ferguson
Acclaimed Contributor

Re: full process command line

Hi:

Add the '-x' option to your command. This enables reporting command lines up to 1024 characters long. For 11.0, patch PHCO_26274 is required.

Regards!

...JRF...