1753445 Members
5172 Online
108794 Solutions
New Discussion юеВ

Re: ps full name process

 
SOLVED
Go to solution
Aranzazu
Frequent Advisor

ps full name process

Hello,
I have some process that are so long and when I command ps I have not get the full name.
In example:
ps -ef|grep ops
I get this:
/opt/oracle/pkg03/merca02/app/openprocess/OPSchedule/bin/opspse

But the real proces name is:/opt/oracle/pkg03/merca02/app/openprocess/OPSchedule/bin/opspserver

So I need show the full name with ps command.
┬┐How can i do it in HP-UX?

Tnaks in advance
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor
Solution

Re: ps full name process

Hi:

Use the '-x' argument with 'ps' to show an extended commandline.

Regards!

...JRF...
Marco Santerre
Honored Contributor

Re: ps full name process

Try adding the x in your options arguments
eg: ps -efx | grep ops
Cooperation is doing with a smile what you have to do anyhow.
DCE
Honored Contributor

Re: ps full name process


Hello,

If you are using a vt100 emulation (or some other test based screen), set your screen width to 132 instead of the default(80).

This has worked for me in the past........


Dave
Robert-Jan Goossens
Honored Contributor

Re: ps full name process

or try this one.

# UNIX95= ps -eo pcpu,pid,args | grep ops
0.0 25739 /app/ops/xos/bin/opspserver

Best regards,
Robert-Jan
Senthil Prabu.S_1
Trusted Contributor

Re: ps full name process

Hi,
Use the swtich "x" along with ps -ex to find more details.


or otherwise, use
UNIX95= ps -eo pcpu,pid,args | grep ops


HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.
Bill Hassell
Honored Contributor

Re: ps full name process

NOTE: the -x option was added to HP-UX relatively recently. If you get an error saying that -x is not a valid option, you'll need the latest ps patch. Note also that there is no patch prior to 11.00 (ie, 10.20 and earlier) so you won't see all of the command line.

Note also that if you are using grep to locate a process by name, use ps to find the process by name. It is always accurate and works on earlier versions of HP-UX:

UNIX95=1 ps -f -C opspserver


Bill Hassell, sysadmin
VAS_1
Frequent Advisor

Re: ps full name process

It is also worth noting that in 11.23 the default command line width is configurable via the /etc/default/ps configuration file.
Arturo Galbiati
Esteemed Contributor

Re: ps full name process

Hi,
in HP-UX 11i:
ps -efx|grep ops

add 'x' option.
See man for furhet info.

HTH,
Art