SUMMARY:ps output command field limited to 80 characters; 2nd post

From: Ramindur Singh (
Date: Wed Mar 25 1998 - 07:48:43 CST

Since my last post, I received few replies.

Thanks to:
Gustavo Leite de Mendonca Chaves;
Ian T Collins;
K. Ravi;
David Thorburn-Gundlach;

They all recommended using BSD ps with the following arguments:
-auxww, -aguxww, -auxwww.
I had tried this before but the output command field is still limited to
80 characters.
In addition to above suggestion, K. Ravi also suggested writing a
wrapper using exec or execve to execute the required program and
monitoring this.
Having thought about this, there are the following workarounds:
1. Be sensible about directory names, i.e. make them shorter;
2. Build in diagnostic in the software so that it logs etc.;

I would like to take the opportunity to thank all who have taken the
time to reply. It is much appreciated.
Ramindur Singh

Now the original question so that this summary is complete:

I am trying to trace the full command process that has been taken over
init, but ps -ef limits the command field to eighty characters. For
ps -ef|grep qab gives this output:
      qab 4955 1 0 Mar 12 ? 0:02
/pbt/opt/jdk1.1.3/bin/sparc/green_threads/java -classpath

As you can see, the command field '/pbt/opt...' is limited to eighty
characters and has chopped off the rest. The above is just one example
Is there a way to see the complete argument? I have searched the
but to no avail.

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:34 CDT