Skip to content

Instantly share code, notes, and snippets.

@vad
Created October 15, 2009 14:28
Show Gist options
  • Save vad/210982 to your computer and use it in GitHub Desktop.
Save vad/210982 to your computer and use it in GitHub Desktop.
class AnalyseTask(Task):
def run(self, lang, date):
from subprocess import *
import os
logger = self.get_logger()
logger.info("Running: %s-%s" % (lang, date))
p = Popen("/sra0/sra/setti/Source/wiki-network/analysis.py --as-table --group --reciprocity --density $HHOME/datasets/wikipedia/%swiki-%s_rich.pickle" % (lang, date),
shell=True, stderr=PIPE)
sts = os.waitpid(p.pid, 0)
return p.stderr.readlines()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment