mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
25 lines
415 B
Python
25 lines
415 B
Python
#!/usr/bin/env python2.4
|
|
|
|
"""
|
|
Script that just echos the command line.
|
|
"""
|
|
|
|
import sys, os, urllib
|
|
|
|
BUFFER = 1048576
|
|
|
|
url = sys.argv[1]
|
|
out_name = sys.argv[2]
|
|
|
|
out = open(out_name, 'wt')
|
|
try:
|
|
page = urllib.urlopen(url)
|
|
while 1:
|
|
data = page.read(BUFFER)
|
|
if not data:
|
|
break
|
|
out.write(data)
|
|
except Exception, e:
|
|
print 'Error getting the data -> %s' % e
|
|
out.close()
|