[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LYNX-DEV Lynx and pinging Web ports

From: Klaus Weide
Subject: Re: LYNX-DEV Lynx and pinging Web ports
Date: Sat, 29 Mar 1997 19:00:59 -0600 (CST)

On Sat, 29 Mar 1997, Wayne Buttles wrote:

> On Sat, 29 Mar 1997, Andy Gaynor wrote:
> > I have to get some network monitoring done.  Part of this involves pinging 
> > Web
> > ports to make sure they're alive and functioning.  I intend to do something
> > silly like "lynx -source url | fgrep -i </html>". 
> You would be better off adding a -head in there and grepping for "200 OK"
> however it would seem that if a real host is dead then the wait is
> forever.  Try lynx -source -head
> Anyone have a better idea?  

The `wget' program may be better suited for the task (less overkill).
For example you can specify a time-out option.  I haven't used it,
just looked at the man page.

Or a bit of perl hackery.  Or just locating some perl thing that surely
somebody must already have written.

It also depends on just what is meant by "pinging Web ports".  Check
whether any daemon is listening at a port?  Wheter it's a HTTP server?
Whether it actually returns a vaild document for "/"?  Etc.

> > Btw, our Usenet action is down for the interim.  (I didn't break it! :)
> Gee, so is ours.  I believe a 9gig drive siezed *sigh* and that is why I
> used the above example.

What are you guys talking about?  :)


; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]