The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
File gets truncated after using sed corleone Shell Programming and Scripting 2 09-23-2006 12:11 PM
Truncated with a pipe? TheCrunge Shell Programming and Scripting 1 11-14-2005 06:35 PM
PS truncated in AIX moe2266 AIX 2 10-13-2005 05:54 PM
ps output truncated pciatto UNIX for Advanced & Expert Users 5 12-02-2003 10:20 AM
ps output truncated pciatto Shell Programming and Scripting 1 06-09-2003 12:40 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-28-2004
renoc renoc is offline
Registered User
  
 

Join Date: May 2004
Posts: 10
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
  #2 (permalink)  
Old 05-28-2004
pressy's Avatar
pressy pressy is offline Forum Staff  
solaris cultist
  
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 726
.......

looking like a term setting
try:

# TERM=vt100; export TERM

greetings Preßy
  #3 (permalink)  
Old 05-28-2004
renoc renoc is offline
Registered User
  
 

Join Date: May 2004
Posts: 10
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
  #4 (permalink)  
Old 05-28-2004
Ygor's Avatar
Ygor Ygor is offline Forum Staff  
Moderator
  
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,409
Take a look at the man pages for your version of ps. On mine I would use ps -efx to show extended info.
  #5 (permalink)  
Old 05-28-2004
renoc renoc is offline
Registered User
  
 

Join Date: May 2004
Posts: 10
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
  #6 (permalink)  
Old 05-28-2004
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
From the Solaris ps man page....

Code:
   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.
  #7 (permalink)  
Old 05-28-2004
renoc renoc is offline
Registered User
  
 

Join Date: May 2004
Posts: 10
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
Closed Thread

Bookmarks

Tags
solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:35 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0