1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-22 21:23:07 +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

4
README
View File

@ -136,7 +136,9 @@ Win32 issues
this.
* The test harness appears to be broken under VC8.0. Debugging shows a problem
the _close() function which is weird.
the _close() function which is weird. CGI is also broken under VC8.0.
* CGI works under Win32, but needs some more work to get it right.
Solaris issues
==============

View File

@ -16,11 +16,11 @@ CONFIG_PLATFORM_WIN32=y
# Microsoft Compiler Options
#
# CONFIG_VISUAL_STUDIO_6_0 is not set
# CONFIG_VISUAL_STUDIO_7_0 is not set
CONFIG_VISUAL_STUDIO_8_0=y
CONFIG_VISUAL_STUDIO_7_0=y
# CONFIG_VISUAL_STUDIO_8_0 is not set
CONFIG_VISUAL_STUDIO_6_0_BASE=""
CONFIG_VISUAL_STUDIO_7_0_BASE=""
CONFIG_VISUAL_STUDIO_8_0_BASE="c:\\Program Files\\Microsoft Visual Studio 8"
CONFIG_VISUAL_STUDIO_7_0_BASE="c:\\Program Files\\Microsoft Visual Studio .NET 2003"
CONFIG_VISUAL_STUDIO_8_0_BASE=""
CONFIG_EXTRA_CFLAGS_OPTIONS=""
CONFIG_EXTRA_LDFLAGS_OPTIONS=""
@ -61,9 +61,9 @@ CONFIG_HTTP_PORT=80
CONFIG_HTTP_TIMEOUT=0
CONFIG_HTTP_INITIAL_SLOTS=10
CONFIG_HTTP_MAX_USERS=100
# CONFIG_HTTP_HAS_CGI is not set
CONFIG_HTTP_CGI_EXTENSION=""
# CONFIG_HTTP_DIRECTORIES is not set
CONFIG_HTTP_HAS_CGI=y
CONFIG_HTTP_CGI_EXTENSION=".php"
CONFIG_HTTP_DIRECTORIES=y
# CONFIG_HTTP_PERM_CHECK is not set
# CONFIG_HTTP_HAS_IPV6 is not set
CONFIG_HTTP_VERBOSE=y

View File

@ -1,18 +1,18 @@
#
# Copyright(C) 2006
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# This library is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# This license is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# You should have received a copy of the GNU Lesser General Public License
# along with this license; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#

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