#!/usr/bin/env python

import cgi
import commands
import time;
import sys; 
##print "Content-type: text/html"
##print 
##print "<title>CGI 101</title>"
##print "<h1>A First CGI Example</h1>"
##print "<P>Hello, CGI World!</p>"

#st = commands.getoutput('ls -l /usr/users/jieyunfu')

print "Content-type: video/mpeg"
print "Content-Length: 6023169"
print


f = open("test2.mpg");
while (True):
    st = f.read(1024);
    #print st,
    sys.stdout.write(st);
    #time.sleep(0.5);

    if len(st)==0:
        break;


"""
f = open("test2.mpg");
print f.read()
"""
