script to measure download speeds of different servers

You can write this in either a Linux Shell Script, Perl, or PHP.

I need a script to download a static file from several different servers and measure the download speed. The script should do the following:

1) read a config file in this format: (this must be in a separate file than the script itself)

# specify an arbitrary number of friendly_name and IP pairs. The exact data structure you use doesn't matter.

friendly_names_and_ips = [ ["name1", "[url removed, login to view]"], ["name2", "[url removed, login to view]"] ]

# this URL is the same for all IPs

url = "/some_path/[url removed, login to view]"

2) for each element in friendly_names_and_ips: (in sequence, not in parallel)

- wget "http://$ip:80$url"

- determine the average download speed in KB/s. For example, "wget [url removed, login to view]" shows:

2012-08-01 10:57:36 (91.0 KB/s) - `index.html.1' saved [13285]

---> save 91.0

3) output results in CSV format with these columns, one row per server:

- current datetime (when printing the output, not when the test was run, might might have been a few seconds earlier, but that's OK)

- friendly_name

- IP

- url

- download_speed_in_kb_s

Don't write the column names. Only write the data values.

When I run this script, its only output should be something like this:

2012-08-01 12:12:12,name1,[url removed, login to view],/some_path/[url removed, login to view],91.0

2012-08-01 12:12:12,name2,[url removed, login to view],/some_path/[url removed, login to view],82.0

I'd like this completed within 24 hours of project start. It needs to run on Ubuntu 10.04 LTS. Test it on your own machine, I won't provide a test environment.

Thank you for your time, I look forward to seeing your bid!

Compétences : Linux, Perl, PHP, Script Shell

en voir plus : perl measure download speed, download speeds different different servers, use of data structure, run shell script from php, need of data structure, index data structure, html 4.01 test, data structure example, data structure.com, 3 d printing, shell script measure download speed, script measure download speed, ubuntu 12.04 download, in linux shell script, google test speed, example shell script, shell script or, shell script, servers, measure, machine element, download time, DIFFERENT, different ip, shell script csv

Concernant l'employeur :
( 52 commentaires ) Newark, United States

Nº du projet : #2367341

4 freelance font une offre moyenne de $130 pour ce travail


You can have it in a few hours. Please have a look at PM for details.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(92 Commentaires)

Please check PM

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 15 jours
(69 Commentaires)

I can do it.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(5 Commentaires)

I can develop that script for you in urgent basis!

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(1 Évaluation)