See
http://www.chip-community.org/index.php/CGI_program_on_CHIP