!/bin/python

import os

query = open("/env/QUERY_STRING", "r")

q=query.read()

if len(q) > 1:

mancmd="man %s" % (q.strip().rstrip('\x00'))

stream=os.popen(mancmd)

output=stream.read()

print "20 text/gemini\r\n"

print output

else:

print "10 Lookup a man page\r\n"

Proxy Information
Original URL
gemini://9til.de/cgi-bin/manpage
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
143.128302 milliseconds
Gemini-to-HTML Time
0.403837 milliseconds

This content has been proxied by September (ba2dc).