06-13-2008
I think that's ok. Maybe place that script onto some more remote clients (maybe in different networks/subnets) so you can also check the connectivity over the network and if more than <n> clients wait more than 5 secs for the answer, you can restart it.
Not sure what this script looks like, maybe use wget to get some web content from your webserver. If your script works, don't worry, I think
10 More Discussions You Might Find Interesting
1. OS X (Apple)
Hey guys, does anyone know how I edit, configure the server settings using the terminal? MySQL and PHP was once working.
But after frying the Xserve G5 i'm in the middle of rebuilding everything, I believe i need to re-configure the root document directory...
but have forgotten how to edit... (1 Reply)
Discussion started by: hype.it
1 Replies
2. SuSE
Hello All,
I need some help as to how to debug the problem I am having with my webserver. I am using Suse 9.2 pro as my server. I have setup my firewall and router to forward http 80 request to my linux server.
I tried pinging my server from work - it worked.
I tried running localhost... (5 Replies)
Discussion started by: negixx
5 Replies
3. UNIX for Dummies Questions & Answers
:confused: Everytime our UNIXWARE 7 Server is restarted we also have to restart the spooler. If the spooler is not restarted, print jobs get stuck in the queu. Once restarted by using the following command lpstop and lpstart everything works fine.
Does anyone have any ideas what could be causing... (0 Replies)
Discussion started by: Yorgy
0 Replies
4. UNIX for Advanced & Expert Users
Can I set up an apache webserver on Mandriva? Looking for the easiest webserver program to install basic webserver just for home use. Any ideas/suggestions much appreciated..... (2 Replies)
Discussion started by: jo calamine
2 Replies
5. Solaris
how can I get statistics and web analysis for solaris 10 webserver access? what is the file? and what is the tools to analyze it?
thanx (2 Replies)
Discussion started by: fsmadi
2 Replies
6. Solaris
I want to incorporate this in a script for some simple monitoring for my webserver
telnet localhost 80
GET /opencms/opencms/test/index.html
how to do it?
I tried
echo "GET /opencms/opencms/test/index.html" | telnet localhost 80
I tried
telnet localhost 80 << EOF
echo "GET... (4 Replies)
Discussion started by: sparcguy
4 Replies
7. Programming
Hi,
I use gfortran to run the code. Some times I need to stop the program
and restart it. On restarting I need to run the program from the beginning.
Is there any script or option available to restart the program from where
it stopped? This script/option will be immensely useful for... (2 Replies)
Discussion started by: rpd25
2 Replies
8. UNIX for Dummies Questions & Answers
Hi,
How is it possible to restart only your process. I can get the process killed but I am not able to start it.
For eg : i first did this ps -ef|grep _out --displays all the process with _out in the name
then I killed kill -15 36044 -- process id.
Now how can i start the same... (1 Reply)
Discussion started by: TH3M0Nk
1 Replies
9. Shell Programming and Scripting
Hi friends,
I have one unix command which is used to check the network status manually.
followig is the command
check_Network this command give follwoing status
Network 1 is ok
Network 2 is ok
network 3 is ok
network 4 is ok
.
.
.
.
Network 10 is... (8 Replies)
Discussion started by: Nakul_sh
8 Replies
10. Emergency UNIX and Linux Support
Dear Linux guru's
I am trying to create a webserver using nc (netcat only) on RHEL 7.2 running on bash shell.
now the easy thing is to get nc listing to a port and respond back
$ while true; do { echo -e 'HTTP/1.0 200 OK\r\n'; set; } | nc -l 7877; done
This when called from a... (3 Replies)
Discussion started by: chakrapani
3 Replies
cgi(5) Programmer's Manual cgi(5)
NAME
cgi - Common Gateway Interface
DESCRIPTION
The Common Gateway Interface is a way to create dynamic web pages. It defines rules for interaction between a program and the web server
while the server talks to the client. There are some ways to use it.
ENVIRONMENT
Normally the webserver sets several environment variables to give some information to the CGI program so it can determine various stuff.
AUTH_TYPE
This reflects the authentification method used to validate a user.
CONTENT_LENGTH
The length of the data in bytes passed to the CGI program through standard input. This is used by the POST method.
CONTENT_TYPE
The MIME type of the query data, such as "text/html", optional.
DOCUMENT_ROOT
This reflects the document root directory of the webserver.
GATEWAY_INTERFACE
Reflects the version of the Common Gateway Interface that the server is using
HTTP_ACCEPT
A comma separated list of MIME type that the client is willing to accept.
HTTP_FROM
The email address of the user issuing the information request. This is not supported by most browsers.
HTTP_REFERER
Reflects the URL from which this CGI program was accessed.
HTTP_USER_AGENT
The name, version and libraries of the browser making the request. This information can be used to determine if the browser is
capable of graphics and is able to display frames and tables.
PATH_INFO
This shows extra information that was passed to the CGI program via command line. Normally it's empty or non-existent.
PATH_TRANSLATED
The translated path on the local filesystem.
QUERY_STRING
This variable refers to additional arguments that were appended to the CGI program - normally with the '?' sign.
REMOTE_ADDR
This refers to the host from which the information request was issued, as IP number.
REMOTE_HOST
This refers to the host from which the information request was issued.
REMOTE_USER
The authenticated name of the user.
REQUEST_METHOD
This refers to the method with which the information request was issued. Normally this is either GET or POST.
SCRIPT_NAME
The virtual name of the script being executed.
SERVER_NAME
The server's hostname or IP number. This may be used to determine the correct paths or resulting HTML code for CGI programs that
are used on the same machine for several servers.
SERVER_PROTOCOL
This is the name and version of the information protocol the request came in with. Normally this is "HTTP/1.0" or "HTTP/1.1".
SERVER_PORT
This refers to the TCP/IP port on which the webserver is running.
SERVER_SOFTWARE
This reflects the name and revision of the webserver software.
AUTHOR
This CGI library is written by Martin Schulze <joey@infodrom.org>. If you have additions or improvements please get in touch with him.
SEE ALSO
cgiDebug(3), cgiHeader(3), cgiSetType(3), cgiSetHeader(3), cgiGetValue(3), cgiGetVariables(3).
CGI Library 6 April 2008 cgi(5)