This information explains how to set up custom CGI scripts for webpages on homepage.usask.ca. It does not describe how to write CGI scripts, just how to install them in a personal website on homepage.usask.ca.
You first need to login to Homepage interactively using SSH, or use an FTP/SFTP client that supports changing file permissions.
Create a sub-directory named "cgi-bin" in your directory on Homepage (e.g. use the command "mkdir cgi-bin").
Place your CGI scripts in the cgi-bin directory, and mark them as executable (e.g. use the command "chmod +x cgi-bin/scriptname").
Have the web server execute your script using the CGIwrap software by referring to it on a web page as:
http://homepage.usask.ca/cgi-bin/cgiwrap/abc123/scriptname (where "abc123" is your username and "scriptname" is the name of the CGI script you want to run.)