From owner-freebsd-questions@FreeBSD.ORG Thu Oct 5 12:53:37 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 1841D16A501 for ; Thu, 5 Oct 2006 12:53:37 +0000 (UTC) (envelope-from martin@saturn.pcs.ms) Received: from saturn.pcs.ms (66-148.0-85.cust.bluewin.ch [85.0.148.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5191043D45 for ; Thu, 5 Oct 2006 12:53:36 +0000 (GMT) (envelope-from martin@saturn.pcs.ms) Received: from saturn.pcs.ms (localhost [127.0.0.1]) by saturn.pcs.ms (8.13.1/8.13.1) with ESMTP id k95D2fvc049358; Thu, 5 Oct 2006 15:02:41 +0200 (CEST) (envelope-from martin@saturn.pcs.ms) Received: (from martin@localhost) by saturn.pcs.ms (8.13.1/8.13.1/Submit) id k95D2eb4049357; Thu, 5 Oct 2006 15:02:40 +0200 (CEST) (envelope-from martin) Date: Thu, 5 Oct 2006 15:02:40 +0200 From: Martin Schweizer To: Mike Jeays , freebsd-questions@freebsd.org Message-ID: <20061005130240.GA49331@saturn.pcs.ms> Mail-Followup-To: Mike Jeays , freebsd-questions@freebsd.org, Martin Schweizer References: <20061005114043.GA49078@saturn.pcs.ms> <1160052070.837.23.camel@chaucer.jeays.ca> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PNTmBPCT7hxwcZjr" Content-Disposition: inline In-Reply-To: <1160052070.837.23.camel@chaucer.jeays.ca> User-Agent: Mutt/1.4.2.1i Organization: PC-Service M. Schweizer GmbH, CH-8608 Bubikon, Switzerland X-PGP-Key: http://www.pc-service.ch/pgp/public_key.asc X-Fingerprint: EC21 CA4D 5C78 BC2D 73B7 10F9 C1AE 1691 D30F D239 Cc: Martin Schweizer Subject: Re: tool for checking website X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Martin Schweizer List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Oct 2006 12:53:37 -0000 --PNTmBPCT7hxwcZjr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Mile =2E.. it's what I'm looking for... very simpe but useful. Thank you for the= hint. Am Thu, Oct 05, 2006 at 08:41:10AM -0400 Mike Jeays schrieb: > On Thu, 2006-10-05 at 13:40 +0200, Martin Schweizer wrote: > > Hello=20 > >=20 > > I'm looking for port which checks if a website is online or not. My goa= l is=20 > > regulary starts a script which do this for me. Any ideas? > >=20 >=20 > #/bin/sh >=20 > wget http://target.url > if [ "$?" -eq 0 ] > then > echo "Site is up" > else > echo "Site is down" > fi >=20 > Or is this too naive and simple? --=20 Regards Martin Schweizer 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;=20 fingerprint: EC21 CA4D 5C78 BC2D 73B7 10F9 C1AE 1691 D30F D239; --PNTmBPCT7hxwcZjr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFFJQJwwa4WkdMP0jkRAnqtAKCMBK3cDmJ4RwtvYarN55wclUFVzwCfcukO ISlOilxiL3BG3soEnnUJOOI= =A0jW -----END PGP SIGNATURE----- --PNTmBPCT7hxwcZjr--