>Number:         2613
>Category:       general
>Synopsis:       "apachectl status" returns the same information as "apachectl 
>fullstatus"
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Jul 14 11:40:00 PDT 1998
>Last-Modified:
>Originator:     [EMAIL PROTECTED]
>Organization:
apache
>Release:        1.3.0
>Environment:
SunOS darkwing 5.6 Generic_105181-06 sun4d sparc
>Description:
"apachectl status" returns the same information as "apachectl fullstatus"
because of some incorrect assumptions about lynx output.  We are running lynx
2.8, which by default wraps lines to fit in 80 columns and hence breaks the
words "current process" that are searched for to truncate the output of
"lynx --dump http://localhost/server-status";; since that string is not matched
the entire status output is displayed.

There also seems to be a portability problem with the awk script given.  I
was unable to get it to work using Solaris awk.
>How-To-Repeat:
Compare "apachectl status" output with "apachectl fullstatus" on a system with
lynx-2.8.
>Fix:
This patch changes the 'awk' call that edits down the "apachectl status"
information into a call to 'sed' which should work in more circumstances.  It
could probably be made even more general.

@@ -124,7 +128,7 @@
        fi
        ;;
     status)
-       $LYNX $STATUSURL | awk '  { if (/current process/) { print; exit } else 
print } '
+       $LYNX $STATUSURL | sed -n '1,/process$/p'
        ;;
     fullstatus)
        $LYNX $STATUSURL
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]



Reply via email to