solaris 2.5.1 /usr/ucb/ps truncation problems


 
Thread Tools Search this Thread
Operating Systems Solaris solaris 2.5.1 /usr/ucb/ps truncation problems
# 1  
Old 01-27-2005
solaris 2.5.1 /usr/ucb/ps truncation problems

we aheva couple of old sun OS boxes, that we are trying to parse /usr/ucb/ps output.

However it seems that something is occuring that is causeing th output of "/usr/ucb/ps -auxwww" to cut short the process name, whereas "ps -eaf" can display the entire process name.

It will work for a while following a system reboot, but would liek to understand what might cause it to be shortened.

When it is shortened output, the command name always gets truncated at the same spot.

Thanks
# 2  
Old 01-28-2005
You posted that /usr/ucb/ps has the problem of truncation - is that correct?

I ask because most folks have the trouble the other way - see this thread
# 3  
Old 01-28-2005
yeah /usr/ucb/ps. its weird because its intermittent. something is hosing the proc tables. we can get the full command line from ps -eaf but need to use /usr/ucb/ps -auxwww because our paths can be quite long in some cases.

it can be fixed by a reboot most times and is not specific a certain system.

if you could offer another way to get long command line names for running processes we could try workaorunds to avoid using ps at all.

I haven't ofound any third party type program sthat will work. these are running solaris 2.5.1 also so that crimps plans for some things like psperl and such.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 11 compatibility/ucb install

Hi im a newbie to solaris. im given the task to install the compatibility/ucb component my environment is without internet connection. so when i ran the command: pkg install compatibility/ucb i get an error: Unable to contact valid package repository where can i find the download for this... (2 Replies)
Discussion started by: guy3145
2 Replies

2. Solaris

Solaris - /usr/bin/rm file

Hi , Can anyone tel me how to read the content of /usr/bin/rm file and pls tell me is it possible to edit that file??? (23 Replies)
Discussion started by: sudhan143
23 Replies

3. UNIX for Advanced & Expert Users

how can i use /usr/ucb/ps to give the full user

Hi, on solaris I need the full ps output, and process this. With /usr/ucb/ps auxwww I get the output as wanted, but the user is cut off to 8 long. With ps -o ruser I can get the full username, but I do not have the full output. Is it possible to get long output, with the full username? ... (1 Reply)
Discussion started by: dimpie
1 Replies

4. Solaris

How do I link ld in /usr/ucb/ to /usr/ccs/bin?

Hi all, below is the problem details: ora10g@CNORACLE1>which ld /usr/ucb/ld ora10g@CNORACLE1>cd /usr/ccs/bin ora10g@CNORACLE1>ln -s /usr/ucb/ld ld ln: cannot create ld: File exists ora10g@CNORACLE1> how to link it to /usr/ccs/bin? (6 Replies)
Discussion started by: SmartAntz
6 Replies

5. Shell Programming and Scripting

long process listing with /usr/ucb/ps weird behaves

hello I am trying to run the following script to get the my-progam pid: #!/bin/ksh tt=`/usr/ucb/ps| grep -i $1| grep -v grep | awk '{print $2}'` echo $tt When I run the script I get the more PIDs $./test.sh my-program 12033 15033 15034 Actually my-program's PID is 12033....I... (6 Replies)
Discussion started by: sreeniatbp
6 Replies

6. UNIX for Advanced & Expert Users

/usr/ucb/ps -auxwll

Hei, When I run the /usr/ucb/ps -auxwll with any other user except root I get nothing (Solaris 10 in global). Is a way to get the same resualt as root with my user. tnx Mehrdad (0 Replies)
Discussion started by: mehrdad68
0 Replies

7. Shell Programming and Scripting

problem get the value of /usr/ucb/ps -guxww

Hello all im trying to get the value of: /usr/ucb/ps -guxww | grep Tomcat | grep $USER | grep -v grepinto variable , im using csh . like this : set PS="/usr/ucb/ps -guxww" set isTomcat = `cat $PS | grep Tomcat | grep $USER | grep -v grep` but im keep geting this error: cat: cannot open... (4 Replies)
Discussion started by: umen
4 Replies

8. UNIX for Advanced & Expert Users

/usr corrupt, can get to fsck (solaris)

I have a solaris 5.8 system, it wont boot because /usr is corrupt, which means i cannot bring up fsck to run a disk check. Any ideas? (3 Replies)
Discussion started by: frankkahle
3 Replies

9. Solaris

/usr/bin/ps -p equivalent in ucb version

Hi, Is there an option in /usr/ucb/ps version to get a selected list of processes like in /usr/bin/ps -p"1 3 5" option? Thanks, Fredy (7 Replies)
Discussion started by: fredy
7 Replies

10. Shell Programming and Scripting

date=`/usr/ucb/expr $date1 - 1`

Hi I need to subtract one day from date1=`/bin/date +%d` So I used date=`/usr/ucb/expr $date1 - 1` The only thing is if date1 is a single digit like 08, date will be 8 instead of 08. How can I avoid losing 0? Thanks for all your help!!! (4 Replies)
Discussion started by: whatisthis
4 Replies
Login or Register to Ask a Question