Python
Hello World
#!/usr/ports/lang/python --
print """
Content-Type: text/html; charset=shift_jis
<html><body>
Hello World!
</body></html>
"""
exit
Content-Type: text/html; charset=shift_jisと空行一行はcgiを書く上では必ず必要です。
おまじないと思ってください。