summaryrefslogtreecommitdiffstats
path: root/client/shared/lib/httpd/bandwidth.sh
diff options
context:
space:
mode:
Diffstat (limited to 'client/shared/lib/httpd/bandwidth.sh')
-rw-r--r--client/shared/lib/httpd/bandwidth.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/client/shared/lib/httpd/bandwidth.sh b/client/shared/lib/httpd/bandwidth.sh
new file mode 100644
index 00000000..9e7833c3
--- /dev/null
+++ b/client/shared/lib/httpd/bandwidth.sh
@@ -0,0 +1,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>" \ No newline at end of file