Scripting a mirror test

Jon M. Hanson jon at the-hansons-az.net
Fri Aug 31 21:05:21 MST 2007


Joey Prestia wrote:
> Problem: I need to come up a script that I can use to test if between 30 
> to 50 mirrors are carrying the content of a particular page in its 
> unchanged form. I would guess to create a script with maybe a for loop 
> and a file with the web addresses of these mirrors and run a diff on the 
> pages then send any errors to me so if the site is failing to maintain 
> its content I can be notified. I am still quite new to this but am sure 
> it can be done with a script that I could run as a cron job instead of 
> manually testing each of the pages several times a week. Any suggestions 
> on how I could load the site content to do this and what commands would 
> be best suited?
> Thanks Joey
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>   
wget is a command-line interface for web pages. You could use that to
download the web pages into a file and then do something like diff,
md5sum, sha1sum, etc. to see if they are the same.

-- 
Jon M. Hanson (N7ZVJ)
Homepage:  http://the-hansons-az.net
Weblog:    http://the-hansons-az.net/wordpress
Jabber IM: jon at the-hansons-az.net


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20070831/7f0ee929/attachment.pgp 


More information about the PLUG-discuss mailing list