Date: Thu, 5 Oct 2006 15:02:40 +0200 From: Martin Schweizer <lists_freebsd@bluewin.ch> To: Mike Jeays <mj001@rogers.com>, freebsd-questions@freebsd.org Cc: Martin Schweizer <info@pc-service.ch> Subject: Re: tool for checking website Message-ID: <20061005130240.GA49331@saturn.pcs.ms> In-Reply-To: <1160052070.837.23.camel@chaucer.jeays.ca> References: <20061005114043.GA49078@saturn.pcs.ms> <1160052070.837.23.camel@chaucer.jeays.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <info@pc-service.ch> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061005130240.GA49331>