marconi_07 has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: Perl Script for monitoring a Website
by tirwhan (Abbot) on Apr 04, 2008 at 09:10 UTC

    Judging from this and your other post, I think someone should point out that we are not here to write your programs for you, but rather to provide help on concrete problems. Some effort on your part should be put into a question, at the very least a description of what exactly you're trying to achieve. Read How (Not) To Ask A Question for more on this topic.

    Just for laughs, here's a one-liner that will monitor the status of a website (for a certain definition of "monitor"). Read the perldocs for the modules invovled and you'll be well on your way to writing your own, more production-suitable, version.

    perl -MLWP -e 'print LWP::UserAgent->new->request(HTTP::Request->new(G +ET=>"http://example.com"))->is_success()?"up\n":"down\n"'

    All dogma is stupid.
Re: Perl Script for monitoring a Website
by jhourcle (Prior) on Apr 04, 2008 at 13:16 UTC
Re: Perl Script for monitoring a Website
by derby (Abbot) on Apr 04, 2008 at 10:33 UTC
Re: Perl Script for monitoring a Website
by Gavin (Archbishop) on Apr 04, 2008 at 10:36 UTC
    "Perl Script for monitoring a Website"

    It would also help if you listed what you wanted to monitor, visits, page hits or IP addresses or any number of things, if that's what you after this node may help web statistics.

Re: Perl Script for monitoring a Website
by dsheroh (Monsignor) on Apr 04, 2008 at 16:19 UTC
    Yes. Several people (myself included) are capable of giving inputs for a Perl script for monitoring a website.

    Now that I've answered the question you asked, did you have a more meaningful question that you intended?

Re: Perl Script for monitoring a Website
by Popcorn Dave (Abbot) on Apr 05, 2008 at 04:19 UTC
    You might want to look at "Wicked Cool Perl Scripts" published by (I believe) No Starch Press. I believe they have a script that might get you closer to what you're after. There's a script to monitor comic strip pages that may lead you in the direction what you're after.


    Revolution. Today, 3 O'Clock. Meet behind the monkey bars.

    I would love to change the world, but they won't give me the source code