System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

how to expand "ps -ef" output

SOLVED
Go to solution
senthil_kumar_1
Super Advisor

how to expand "ps -ef" output

Hi

I am running long command in hp-xu

Ex:

# /appl/starcd.4.0.2/FLEXLM/10.8.0.7/hpux64_11.00-pa8000/bin/lmgrd -c /opt/flexlm/vendor

After execting this, I used "ps-ef" to see

root@lgapps:/ > ps -ef | grep starcd
root 4404 1 0 08:27:07 ? 0:00 /appl/starcd.4.0.2/FLEXLM/10.8.0.7/hpux64_11.00-pa8000/bin/l


here i am seeing only part of the command.

So how to see the Full compand path in "ps -ef"
like i have entered.

5 REPLIES
Robert-Jan Goossens
Honored Contributor
Solution

Re: how to expand "ps -ef" output

Hi,

Try this;

# ps -x | grep starcd

Regards,
Robert-Jan
Robert-Jan Goossens
Honored Contributor

Re: how to expand "ps -ef" output

add on

# ps -efx | grep starcd
James R. Ferguson
Acclaimed Contributor

Re: how to expand "ps -ef" output

Hi:

With 11.0 you need patch PHCO_33267 to enable an extended (1024 byte) command output with the '-x' switch of 'ps' as Robert suggested. Otherwise, you will be limited to 64-characters.

In current releases the file '/etc/default/ps' can enable you to define the default command length you wish to report.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: how to expand "ps -ef" output

Shalom,

This script actually contains a good example that might help.

http://www.hpux.ws/?p=8

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sivakumar MJ._1
Respected Contributor

Re: how to expand "ps -ef" output

Check this link

http://unixhelp.ed.ac.uk/CGI/man-cgi?ps
For HP Online Case Logging-->http://support.openview.hp.com/