nano /mnt/sda1/download.py
#!/usr/bin/python
import urllib2
zipfile = urllib2.urlopen("http://www.casair.net/vnc/10MB.zip")
output = open('/mnt/sda1/10MB.zip','wb')
output.write(zipfile.read())
output.close()
chmod 755 /mnt/sda1/download.py

Profile the code:

time /mnt/sda1/download.py
real    0m 17.95s
user    0m 1.98s
sys     0m 1.86s

It take 17.95s to download 10 MB file and save it at Micro SD.

Comments powered by CComment