PS truncates the o/p


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting PS truncates the o/p
# 1  
Old 04-05-2006
PS truncates the o/p

Hi ,
I have faced a strange situation in Solaris.
the command ps -eo pid,args | grep 'SOMEPROCESS' truncates the output.
outpt looks like

Code:
111 xxxxxxxxxxxxx SOMEPROCES
123 xxxxxxxxxxxxx SOMEPROCES
323 xxxxxxxxxxxxx SOMEPROCES

The above doesn't return the complete command/args, infact if i've executed the same in Red-hat & I got the output as

Code:
111 xxxxxxxxxxxxx SOMEPROCES AAA11111
123 xxxxxxxxxxxxx SOMEPROCES BBB2222
323 xxxxxxxxxxxxx SOMEPROCES CCC33333

which is my expectation. Iam not sure why in Solaris output is truncated. appreciate your inputs
# 2  
Old 04-25-2006
Please try

/usr/ucb/ps auxwww

Regards,
Venkat
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

/usr/bin/expect script truncates data

I have a script on a Linux machine that connects remotely, via telnet on a windows machine to launch several commands and colect their output. On the Linux machine the output of these commands is redirected in a file. The script: #!/usr/bin/expect log_user 0 spawn telnet 10.10.10.10... (6 Replies)
Discussion started by: black_fender
6 Replies

2. Shell Programming and Scripting

sort truncates line when they contain nulls

When I try to sort a file where some records contain nulls i.e. hex 00 the sort truncates the record when it reaches the null and writes message: "sort: warning: missing NEWLINE added at end of input file myfile" I'm assuming from this that the sort sees the null as a special character and... (6 Replies)
Discussion started by: ArthurWaik
6 Replies

3. UNIX for Advanced & Expert Users

who truncates the output? redirection? tty? Bug?

Hi, Output of running berkeley ps is truncated to 80 chars when using redirections. $ /usr/ucb/ps -e 12490|cat #truncated to 80 chars PID TT S TIME COMMAND 12490 pts/24 S 0:00 sleep 4000 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa getting longer lines is done by changing the stty $... (7 Replies)
Discussion started by: fredy
7 Replies
Login or Register to Ask a Question