From: Zooko O'Whielacronx Date: Tue, 10 Jul 2007 01:19:53 +0000 (-0700) Subject: tahoe-get.py: the first, most primitive command-line client X-Git-Url: https://git.rkrishnan.org/rgr-080307.php?a=commitdiff_plain;h=8769f2eeba1e3e8011186755418002da50ddb0ed;p=tahoe-lafs%2Ftahoe-lafs.git tahoe-get.py: the first, most primitive command-line client --- diff --git a/src/allmydata/scripts/tahoe-get.py b/src/allmydata/scripts/tahoe-get.py new file mode 100644 index 00000000..4a034d5a --- /dev/null +++ b/src/allmydata/scripts/tahoe-get.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python + +import sys, urllib + +def GET(url): + f = urllib.urlopen(url) + sys.stdout.write(f.read()) + +vfname = sys.argv[1] + +base = "http://tahoebs1.allmydata.com:8011/" +base += "vdrive/global/" +url = base + vfname + +GET(url)