#!/usr/bin/env ruby #coding:euc-jp print "Content-type: text/html\n\n" print "<html> <head> <title>環境変数一覧</title> </head> <body> <table align=\"center\" border=\"1\" bordercolor=\"#000099\" cellspacing=\"0\"> <caption>環境変数一覧</caption>" ENV.each { |k,v| # v = v.gsub(/\w/, "*") #サンプルのため非表示(この行を削除してください) print "<tr><td>#{k}</td><td>#{v}</td></tr>\n" } print"</table> </body> </html>"