#!/bin/bash ulimit -v 10240 # Read and ignore the request line=foo while [ -n "$line" ]; do read line line=${line%[:blank:]} line=${line% } done # Generate an HTTP reply echo "HTTP/1.0 200 OK " echo "Content-type: text/html " echo " " echo "scripts.mit.edu server status

scripts.mit.edu server status

The following table shows a list of the servers that are currently handling web requests for scripts.mit.edu:

" /sbin/ipvsadm | sed 's/:0//; s/:Port//' | awk 'BEGIN { OFS=""}' echo "
"; show=1 } /^FWM 2 / { show=1 } /^FWM [^2] / { show=0 } /->/ { if (show==1) print "
" $2, $4, $5, $6 "
"