Common Gateway Interface script
CGI is the file format used to describe files on a Web Server that run scripts, these files are usually written in Pearl and are used for various addons for Web Sites such as contact formula's, Forums (though now superseded for the most part by PHP forms) and Guest Books as well as many other things.
How to open .cgi files?
Software to open .cgi files
What are .cgi files