def upload(self): import gridme for lfn in self.gridarchives: base = os.path.split(lfn)[-1] fname = os.path.join(os.getcwd(), base) fnames.append(fname) gridme.upload(fname, lfn)
import crawlme crawlme.crawl(['http://www.uoa.gr', 'http://www.ceid.upatras.gr', 'http://www.ntua.gr'], 2) import os import gridme jarfile = 'crawldata.jar' cmd = 'jar -cMf %s %s' % (jarfile, 'crawldata') os.system(cmd) cwd = os.getcwd() jarpath = os.path.join(cwd, jarfile) gridme.upload(jarpath, 'lfn:/grid/see/jylab/%s' % jarfile)