Scripting a mirror test

der.hans PLUGd at LuftHans.com
Sun Sep 2 23:48:42 MST 2007


Am 31. Aug, 2007 schwätzte Kevin Faulkner so:

> What about curl?

It would work just fine as it satisfactorily fills the same need as wget.

ciao,

der.hans

> Jon M. Hanson wrote:
>> 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.
>>
>>
>> ------------------------------------------------------------------------
>>
>> ---------------------------------------------------
>> 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
>
> ---------------------------------------------------
> 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
>

-- 
#  https://www.LuftHans.com/        http://www.CiscoLearning.org/
#  "Peace cannot be kept by force. It can only be achieved by understanding."
#    -- Albert Einstein


More information about the PLUG-discuss mailing list