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