Implementing Custom CGI scripts
Our servers have the capability to run CGI scripts based on Perl. Perl is a our language of choice as it is a world standard and is well suited to CGI. In addition, Perl code does not require manual compilations whereas C code must be compiled prior to use.
If you have a custom CGI script that you need to use, simply upload it to your personal "cgi-bin" Here are some helpful tips to follow when installing Perl scripts:
- Upload to your cgi-bin directory to ensure proper file permission settings
- Upload in ASCII transfer mode (and NOT BINARY mode)
- The first line of each script must read: #!/usr/bin/perl
- Reference the script using /cgi-bin
If a script calls another file within your account, but the script does NOT require a URL,you need to use the system path.
e.g./home/<userid>/... <- if file resides in root /home/<userid>/cgi-bin/...<- if file resides in cgi-bin
Substitute the path to the file beginning with your userid. Your userid is the directory name of your account.
Other Resources
comp.lang.perl.misc
comp.infosystems.www.authoring.cgi
