Maybe something like this (python code):

# /usr/bin/python

import time
import urllib2

if __name__ == "__main__":

    while (1):

        # Initial Time reading
        start = time.clock()

        mp3file = urllib2.urlopen("http://www.slug.org.au/event/900001";)
        output = open('test.mp3','wb')
        output.write(mp3file.read())
        output.close()

        print time.clock() - start

        time.sleep(3600) # Time in seconds.




On Thu, May 22, 2014 at 9:34 AM, David <da...@kenpro.com.au> wrote:

> On 22/05/14 08:38, Rick Welykochy wrote:
>
>> Edwin Humphries (text) wrote:
>>
>>> Can anyone suggest a way of testing the download speed of my NBN fibre
>>> connection every hour and logging it? I have an ostensibly 100Mbps
>>> connection, but the speed seems to vary enormously, so an automated process
>>> would be good.
>>>
>>
>> Download a file of known length, say 1000 MB, from a server
>> whose speed you can trust every hour. Time and log each download.
>> Also verify the contents of the downloaded file with an md5 or sha
>> digest.
>>
>> This can be automated with an scp inside a simple (shell) script.
>>
>>
> Westnet used to have a file available for exactly this purpose - I dare
> say other ISP's do too. Perhaps you could ask your own ISP.
>
>
>
>
>
>
>> cheers
>> rickw
>>
>>
>>
> --
> David McQuire
> 0418 310312
>
>
> --
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to