1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Added the health.sh CGI script

git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@14 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich
2006-07-07 10:58:03 +00:00
parent da46383ade
commit 818037c8e3
5 changed files with 38 additions and 14 deletions

21
www/test_dir/health.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/sh
echo "Content-type: text/html"
echo
echo "<HTML>"
echo "<TITLE>System Health</TITLE><BODY>"
echo "<H1>System Health for '`hostname`'</H1>"
echo "<H2>Processes</H2>"
echo "<TABLE BORDEr=\"2\">"
ps -ef | sed -e "s/\(.*\)/<tr><td>\1<\/td><\/tr>/"
echo "</TABLE>"
echo "<H2>Free FileSystem Space</H2>"
echo "<TABLE border=\"2\">"
df -h . | sed -e "s/\(.*\)/<tr><td>\1<\/td><\/tr>/"
echo "</TABLE>"
echo "</BODY></HTML>"

1
www/test_dir/tmp Symbolic link
View File

@ -0,0 +1 @@
/tmp