~ubuntu-branches/ubuntu/vivid/uwsgi/vivid-proposed

1
2
3
4
5
6
7
8
9
10
11
12
13
import struct
import sys
import os

filename = sys.argv[1]

size = os.path.getsize(filename)

f = open(filename, 'r')
os.write(1, f.read())
f.close()

os.write(1, (struct.pack("<Q", size)))