1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-08-23 03:54:33 +03:00
Files
esp8266/www/test_dir/health.sh
cameronrich 8578256d9f added a better installer
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@22 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2006-07-16 10:48:14 +00:00

13 lines
395 B
Bash
Executable File

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