Operating System - HP-UX
1830898 Members
2234 Online
110017 Solutions
New Discussion

Full command line listing for 'ps' comman

 
SOLVED
Go to solution
Jeffrey Davis_1
Frequent Advisor

Full command line listing for 'ps' comman

Hi, does anybody know how to list the full command line running for a process using the 'ps' command or some other means. The 'ps -eaf' seems to be truncating the command line. I see the man page talk about 'ps' options for formating, but only seems to be supported in XPG4.?
Thanks in advance,
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor
Solution

Re: Full command line listing for 'ps' comman

Hi Jeffrey:

Sorry, this is a kernel issue. Only a subset of the full command line for a process is saved and hence availble for later display. If I recall, correctly, the size is about 40-characters.

Regards!

...JRF...
Stefan Farrelly
Honored Contributor

Re: Full command line listing for 'ps' comman


You cant, this command portion of ps can only hold 60 characters, thats all. If the full command to start the process was over 60 chars then ps can only show the first 60. If its a user/application process ensure they stick to 60 chars when launching the process then you can see it all with ps.
Im from Palmerston North, New Zealand, but somehow ended up in London...