generic file generation cgi script.