NAME

httpd-p -- Query httpd daemons and report their types and versions


SYNOPSIS

httpd-p inputfile


DESCRIPTION

httpd-p accepts input from a file specified as the first argument. The format of the file is:

  www.example.com
  site2.net:8080
  www.site3.org

Sites whose port number is not specified (with :port notation) will be queried on port 80.

Errors including sites that could not be queried will be reported on STDERR; results will be sent to STDOUT, in the form

  9 : some_server/1.0
  8 : another_server/1.4
  1 : another_server/1.2
  1 : still_another


RETURN VALUE

Returns 0 on success, 1 otherwise.


EXAMPLES

If you want to check all of the servers listed in /tmp/httpd-hosts, and want to send your output to /tmp/httpd-results, with errors being kept in /tmp/httpd-failures, you might try the following, which assumes a sensible shell, i.e., a Bourne-shell derivative:

 httpd-p /tmp/httpd-hosts >/tmp/httpd-results 2>/tmp/httpd-failures

(How to do this sort of redirection with csh is an excercise left to the reader, perhaps one that will cause him to conclude to change shells.)


BUGS

No thanks.


AUTHOR

C Matthew Curtin <http://www.interhack.net/people/cmcurtin/ >


HISTORY

 $Log: httpd-p.html,v $
 Revision 1.2  2003/07/23 15:31:53  cmcurtin
 committing new content
 Revision 1.1  1998/08/23 14:34:54  cmcurtin
 Fixed minor problems in pod markup.

 Revision 1.0  1998/08/23 13:53:47  cmcurtin
 Initial revision


interhack | cmcurtin | vitals | the soap box | publications | perl | hackcam | links