#!/usr/bin/env python # -*- coding: utf-8 -*- #a place where the web server has the write access WRITABLE_DIRECTORY = "/afs/csail.mit.edu/group/dig/www/data/2008/webdav/tms_web/" POINTER_LOG = open(WRITABLE_DIRECTORY + "pointer.txt") lines = POINTER_LOG.readlines() RESULT = open(lines[-1].strip()) print "Content-Type: text/plain" print for line in RESULT: print line.strip()