ps truncated output

Hi
Problem of ps on Solaris 8 and 9

Perhaps a silly question but I can't find a solution.

the output of the command ps -ef is truncated.

I've tried to change the terminal settings with stty putting
a big number of colums: no change.

Following the man page of ps i have set the variable COLUMNS to
a big value : no change! Trying this with ls works !!!!

Any Idea
Thanks
Rene

looking like a term setting
try:

# TERM=vt100; export TERM

greetings Pre�y

Hi,

setting with TERM make no change.
I suspect a problem of the ps command itself.
Because changin settings of The TERMINAL
woks with ls.
Thanks anyway
Rene

Take a look at the man pages for your version of ps. On mine I would use ps -efx to show extended info.

Hi,

After some testing I'm sure that's a problem is ps, because I've tried this:

ps -e -o user,args

and the output is like this :
root /usr/lib/saf/ttymon -g -h -p Lyne console login: -T sun -d /dev/console -l con
The rest is truncated.
This shows that ps formats the output in columsn and there is a maxsize for each colum
because in this case is not a problem in the size of the terminal.

This is a little problem but it's annoying because I'm trying to capture some programs which are laucnched with a lot of of arguments and thi is these arguments wich interst me!!

Anyway thanks fort all answer.
Rene

From the Solaris ps man page....

   CMD  (all)
         The command name (the full command name and its  argu-
         ments,  up  to  a  limit of 80 characters, are printed
         under the -f option).

....

    args  The command with all its arguments as  a  string.  The
          implementation  may  truncate  this value to the field
          width;  it  is  implementation-dependent  whether  any
          further  truncation  occurs. It is unspecified whether
          the string represented is a version  of  the  argument
          list  as it was passed to the command when it started,
          or is a version of the arguments as they may have been
          modified  by  the  application.   Applications  cannot
          depend on being able to modify their argument list and
          having that modification be reflected in the output of
          ps.  The Solaris implementation limits the  string  to
          80  bytes;  the  string is the version of the argument
          list as it was passed to the command when it started.

This is not a ps issue. 80 bytes is all that the kernel saves. ps can't print what isn't there.

Hi,

OK. One more time , I've nor read CREFFULLY
the man pages. So the pb is closed.

On the other hand have any clue( or any system command) for capturing the
entire command test ?

Thanks
Rene

Rene,

If you have the 'Source Compatibility' packages installed on you Solairs system (SUNWscpu and SUNWscpux), you can us /usr/ucb/ps. I have had similar issues with the character limit with /usr/bin/ps - especially when wanting to see what arguments a given JVM is running with. The following should give you what you want:

/usr/ucb/ps awwx

Cheers,

Keith

Hi,

Thank to kduffin for his suggestion

/usr/ucb/ps -awwx gives to gooood output.

Just for my knowledge i'ts this limitation due
to UNIX SVR4 implementation or a Solaris
limitation.

byby and many thanks to all .
Rene