From owner-freebsd-questions@FreeBSD.ORG Thu Oct 5 14:50:13 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38D6016A407 for ; Thu, 5 Oct 2006 14:50:13 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (dsl081-227-250.chi1.dsl.speakeasy.net [64.81.227.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34DCE43D49 for ; Thu, 5 Oct 2006 14:50:10 +0000 (GMT) (envelope-from derek@computinginnovations.com) Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.13.6/8.12.11) with ESMTP id k95Enoag062824; Thu, 5 Oct 2006 09:49:50 -0500 (CDT) Message-Id: <6.0.0.22.2.20061005094816.0217c558@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Thu, 05 Oct 2006 09:49:03 -0500 To: Martin Schweizer , freebsd-questions@freebsd.org From: Derek Ragona In-Reply-To: <6.0.0.22.2.20061005090621.02166108@mail.computinginnovatio ns.com> References: <20061005114043.GA49078@saturn.pcs.ms> <6.0.0.22.2.20061005090621.02166108@mail.computinginnovations.com> Mime-Version: 1.0 X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: tool for checking website X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Oct 2006 14:50:13 -0000 I forgot a few lines, added in below: At 09:44 AM 10/5/2006, Derek Ragona wrote: >Typically I do: >==================================================== >#!/bin/sh > >WGET=/usr/local/bin/wget >DIFF=/usr/bin/diff >MAIL=/usr/bin/mail >CAT=/bin/cat >RM=/bin/rm >MAILFILE=/tmp/site_report >MY_URL=http://www.mydomain.com >MY_PAGE=index.html >MY_REF_PAGE=/usr/local/www/good/index.html > > >cd /tmp if [ -f "$MY_PAGE" ]; then $RM $MY_PAGE fi >$WGET $MY_URL/$MY_PAGE >$DIFF $MY_PAGE $MY_REF_PAGE >if [ "$?" -eq 1 ] > echo "Site is down" > $MAILFILE > echo " " >> $MAILFILE > echo "Bad page retrieved:" >> $MAILFILE > $CAT $MY_PAGE >> $MAILFILE > echo " " >> $MAILFILE > $MAIL -s "Website Problem Report" me@mydomain.com < $MAILFILE >fi >==================================================== > >This will verify the page is being served, and the content is correct. > > -Derek > > >At 06:40 AM 10/5/2006, Martin Schweizer wrote: >>Hello >> >>I'm looking for port which checks if a website is online or not. My goal is >>regulary starts a script which do this for me. Any ideas? >> >>-- >> >>Regards >> >>Martin >> >> >>PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon >>Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch; >>public key : http://www.pc-service.ch/pgp/public_key.asc; >>fingerprint: EC21 CA4D 5C78 BC2D 73B7 10F9 C1AE 1691 D30F D239; > >-- >This message has been scanned for viruses and >dangerous content by MailScanner, and is >believed to be clean. >MailScanner thanks transtec Computers for their support. > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support.