buxtonicer1
Programmer
I'm pretty new to unix having previously worked with java.
Anyway here is my problem. I wrote an app in java that takes as input a text file with a list of url's. These urls all point to reports that are in a *.pdf format. My app calculated the time it took for each report to download. Basically I used a while loop that read each byte of the file until I got to the end of the file. A timestamp was used either side of this process. By getting the difference between the timestamps I could calculate how long it took for the file to download.
So my question is how do I contruct a .ksh script to do something similar. Ideally I would run the script from a few different locations to get an idea of how fast/slow my network connection is.
Time to google me thinks...
Anyway here is my problem. I wrote an app in java that takes as input a text file with a list of url's. These urls all point to reports that are in a *.pdf format. My app calculated the time it took for each report to download. Basically I used a while loop that read each byte of the file until I got to the end of the file. A timestamp was used either side of this process. By getting the difference between the timestamps I could calculate how long it took for the file to download.
So my question is how do I contruct a .ksh script to do something similar. Ideally I would run the script from a few different locations to get an idea of how fast/slow my network connection is.
Time to google me thinks...