#!/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 -L -f 2 | sed 's/:0//; s/:Port//' | awk 'BEGIN { OFS=""}' echo "
" } /->/ { print "
" $2, $4, $5, $6 "
"