Fix process list spew in verbose kadmin tests
authorGreg Hudson <ghudson@mit.edu>
Mon, 18 Jul 2011 15:10:47 +0000 (15:10 +0000)
committerGreg Hudson <ghudson@mit.edu>
Mon, 18 Jul 2011 15:10:47 +0000 (15:10 +0000)
Set PS_PID to "ps uwwp" so we display only the process we're trying to
point out, and not the whole process table.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25021 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/testing/scripts/env-setup.shin

index 8f5ce7eff58b05f3de7531de0fd27f69186c01e6..9511cec1ddb98eb7a3f9a5f4c944487aaa77f3fa 100755 (executable)
@@ -95,13 +95,13 @@ fi
 if [ "x$PS_ALL" = "x" ]; then
        if ps auxww >/dev/null 2>&1; then
                PS_ALL="ps auxww"
-               PS_PID="ps auxww"
+               PS_PID="ps uwwp"
        elif ps -ef >/dev/null 2>&1; then
                PS_ALL="ps -ef"
                PS_PID="ps -fp"
        else
                PS_ALL="ps auxww"
-               PS_PID="ps auxww"
+               PS_PID="ps uwwp"
                echo "WARNING!  Cannot auto-detect ps type, assuming BSD."
        fi