1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-10-16 22:27:59 +03:00
Files
esp8266/www/test_dir/health.sh
cameronrich 73dfbb7568 new trunk
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@78 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2007-03-14 12:03:51 +00:00

13 lines
420 B
Bash
Executable File

#!/bin/sh
echo "Content-Type: text/html"
echo
echo "<html><title>System Health</title><body>"
echo "<h1>System Health for '`/bin/hostname`'</h1>"
echo "<h2>Processes</h2><table border=\"2\">"
/bin/ps -ef | /bin/sed -e "s/\(.*\)/<tr><td>\1<\/td><\/tr>/"
echo "</table><h2>Free FileSystem Space</h2>"
echo "<table border=\"2\">"
/bin/df -h / | /bin/sed -e "s/\(.*\)/<tr><td>\1<\/td><\/tr>/"
echo "</table></body></html>"