Visit Our UNIX and Linux User Community


ps truncated output


 
Thread Tools Search this Thread
Operating Systems Solaris ps truncated output
# 1  
Old 05-28-2004
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  
Old 05-28-2004
.......

looking like a term setting
try:

# TERM=vt100; export TERM

greetings Pre▀y
# 3  
Old 05-28-2004
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  
Old 05-28-2004
Take a look at the man pages for your version of ps. On mine I would use ps -efx to show extended info.
# 5  
Old 05-28-2004
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  
Old 05-28-2004
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  
Old 05-28-2004
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

Previous Thread | Next Thread
Test Your Knowledge in Computers #233
Difficulty: Easy
The goal of ARPANET, the precursor to the global Internet, was to exploit new computer technologies to meet the needs of military command and control against nuclear threats, achieve survivable control of US nuclear forces, and improve military tactical and management decision making.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Ps -ef, output getting truncated, please help

Hi All, here is an output of my command and the problem is that my output string is truncated, I want to exact the full string, I am on BASH shell, please help me out. Regards Rahul command with Output : lonss05903:cmdsvc01 /home/cmdsvc01 > ps -aef|grep 'Copy' cmdsvc01 2642 8675 ... (7 Replies)
Discussion started by: rahulkalra9
7 Replies

2. UNIX for Advanced & Expert Users

Problem piping find output to awk, 1st line filename is truncated, other lines are fine.

Today I needed to take a look through a load of large backup files, so I wrote the following line to find them, order them by size, and print the file sizes in GB along with the filename. What happened was odd, the output was all as expected except for the first output line which had the filename... (4 Replies)
Discussion started by: gencon
4 Replies

3. Solaris

ps output truncated

Hi, I have Solaris-10 server. /usr/ucb/ps auxww is showing full path if I am running it from root. But if I run it from non-root user, its output is truncated. I don't want to use any other alternate command. Please suggest, what can be its solution. Terminal is set to term. (21 Replies)
Discussion started by: solaris_1977
21 Replies

4. UNIX for Dummies Questions & Answers

output from sed getting truncated

Hi all, I have used sed command with a file of size 7KB and stored the output to another file. When i look into the output file, a few file lines at the bottom have got truncated. The sed statement i used is as below. Why does this happen and how to resolve this. SQL=`sed... (3 Replies)
Discussion started by: madhan@29
3 Replies

5. Linux

relocation truncated to fit

Hi, I am getting linking error i.e. /ade/aime_urtk/oracle/has/include/caa_ResStateListener.hxx:79: relocation truncated to fit: R_PPC_GO T16 vtable for CAA::ResourceStateListener /ade/aime_urtk/oracle/has/lib//libcaad.a(caa_Main.o)(.text+0x88e6): In function `CAA::ResourceStateL... (0 Replies)
Discussion started by: jgobbur
0 Replies

6. UNIX for Dummies Questions & Answers

File gets truncated

Hi Guys, I have a master script file. That calls the other script files. The sub script files append some of the data to the log file. Once the master script completes one sub script execution and returns to execute other sub script that appends to the same log file. the log file gets... (2 Replies)
Discussion started by: Swapna173
2 Replies

7. Shell Programming and Scripting

Truncated with a pipe?

OK, I'm stumped. I have a shell script that reads a list, and for every item in the list performs a lookup in our Active Directory. Now, it seems that when I pipe the results into grep, the complete results are not there (truncated?). I'm not sure if this is a limit of the pipe, grep, shell... (1 Reply)
Discussion started by: TheCrunge
1 Replies

8. AIX

PS truncated in AIX

folks; how can i get longer output than the one i got by using "/usr/ucb/ps awwx"? :mad: (2 Replies)
Discussion started by: moe2266
2 Replies

9. UNIX for Advanced & Expert Users

ps output truncated

Hi! I have some shell scripts receiving in input lots of parameters and I need to select the ones having a particular value in one parameter. A typical shell command line is: PROMPT > shell_name.ksh -avalue_a -bvalue_b -cvalue_c -dvalue_d ... I used a combinaton of ps and grep commands... (5 Replies)
Discussion started by: pciatto
5 Replies

10. Shell Programming and Scripting

ps output truncated

Hi! I have some shell scripts receiving in input lots of parameters and I need to select the ones having a particular value in one parameter. A typical shell command line is: PROMPT > shell_name.ksh -avalue_a -bvalue_b -cvalue_c -dvalue_d ... I used a combinaton of ps and grep commands... (1 Reply)
Discussion started by: pciatto
1 Replies

Featured Tech Videos