That's great!
I also came up with a perl solution since "ps" has a 2048 character limit.
This script will give you all the java processes running on a box but will leave out all classpath stuff giving you (hopefully) the information you'll need to actually identify the process. It will also...
Woo Hoo good news!
But I'll save it till the end.
First of all, bjverzal, thank-you for posting however the process still gets truncated.
guggach, thank-you as well for your input and you are correct. ps does have a limit but I'm not sure if it is 80 chars since my post above displays a lot...
Thanks Rod,
I'm a little new to perl. However, I've been working on it since you posted your reply. We were running perl 5.6.0 and it would appear that I required perl 5.8 to compile the Proc::ProcessTable module.
So I downloaded and installed perl 5.8.0-2 and then I was able to compile the...
Rod, thanks for the reply. I still get a truncated result but at least I understand the -o parameter a little more. For example, if I run
ps -ef -o ruser,pid,args|grep 32070
I get back (check out the end, it's truncated)
was_env 32070 /usr/WebSphere/AppServer5/java/bin/java...
Hello everyone,
I'm trying to display an entire process without truncating the end of it in AIX (via ps). Does anyone know a way of doing this? This seems like a very basic task and I've found a few people who've asked the question and a few answers but nobody seems to be able to do it in AIX...
I think the command is "ps auww" in AIX as far as I can tell but that didn't work.
When I try ps auww I see the processes but they are truncated. So even without the grep, the output is truncated.
I'm guessing there is a limit to the number of characters that ps can display in aix but I...
Thanks fjchia for the reply, that gets me a little closer.
I ran the command and got back the expected result for the specific example above, ie, I got back
was_coo 22112 -CCjar=CooNuansMonitorAppClient.jar
which is excellent.
However, a few of the processes have really, really long...
Hi everyone,
I'm trying to get the first and last strings of a process from the result of a ps -ef command in AIX. For example, if I do a ps -ef|grep java, here's one of the results: (I'll spare you the rest of them :) )
was_coo 29212 1 0 Jun 11 pts/2 0:00 /bin/sh...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.