tool for checking website

Martin Schweizer lists_freebsd at bluewin.ch
Thu Oct 5 05:53:37 PDT 2006


Hello Mile

... 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 
> > 
> > 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?
> > 
> 
> #/bin/sh
> 
> wget http://target.url
> if [ "$?" -eq 0 ]
> then
>   echo "Site is up"
> else
>   echo "Site is down"
> fi
> 
> Or is this too naive and simple?

-- 

Regards

Martin Schweizer
<info at 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; 
fingerprint: EC21 CA4D 5C78 BC2D 73B7  10F9 C1AE 1691 D30F D239;

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20061005/0432ef6b/attachment.pgp


More information about the freebsd-questions mailing list