blob: 9e7833c3b87d160e93079b87ddace30be3ea2d57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
echo "Content-type: text/html"
echo ""
echo "<html><head><meta http-equiv='Refresh' content='11,URL=./bandwidth.sh'> <link rel='stylesheet' type='text/css' href='oglive.css' /> <title>Bash as CGI </title></head><body>"
echo "<TEXTAREA class='example1' NAME='contenido' ROWS='35' COLS='50' >"
echo " DISK || NET "
echo "Read:Write || Recv:Send "
echo $(tail -n1 /tmp/bandwidth)
#echo " $(dstat -dn -f 1 1 ) "
echo "</TEXTAREA>"
echo "</body></html>"
|