3 echo -e -n "Content-type: text/html\x0d\x0a"
7 echo "<h1>lwstest script stdout</h1>"
8 >&2 echo "lwstest script stderr: $REQUEST_METHOD"
10 echo "<h2>REQUEST_METHOD=$REQUEST_METHOD</h2>"
12 if [ "$REQUEST_METHOD" = "POST" ] ; then
13 >&2 echo "lwstest script stderr: doing read"
14 echo "CONTENT_LENGTH=$CONTENT_LENGTH"
15 read -n $CONTENT_LENGTH line
16 >&2 echo "lwstest script stderr: done read"
21 echo "<tr><td colspan=\"2\" style=\"font-size:120%;text-align:center\">/proc/meminfo</td></tr>"
22 cat /proc/meminfo | while read line ; do
23 A=`echo "$line" | cut -d: -f1`
24 B=`echo "$line" | tr -s ' ' | cut -d' ' -f2-`
25 echo -e "<tr><td style=\"background-color:#f0e8c0\">$A</td>"
26 echo -e "<td style=\"text-align:right\">$B</td></tr>"