- signup.pl is a Perl script that facilitates the subscribing/unsubscribing process for a majordomo-based mailing list by providing a form to be used for subscribing and unsubscribing. The user enters his/her e-mail address into a form and selects the desired action (subscribe/unsubscribe). The script does the rest. The user no longer has to concern with majordomo commands. And the list wonít have to put up with unsubscribe commands sent to the list address.
This script is specifically written to be used with the majordomo at cycling.org, but it can be adapted to work with majordomo at any valid domain.
- You have to have access to a web server to run this script. The web server would preferably be running any variant of UNIX, such as Linux or BSD. (NT web servers with Perl interpreter can be used, but youíre on your own!) You must have the capability to execute CGI scripts (check with your ISP to make sure). And you must possess a working knowledge of the UNIX file system, HTML coding, and how to implement a CGI script.
- signup.pl uses the cgi-lib.pl module, which was written by Steven E. Brenner. cgi-lib.pl is usually loaded with the standard Perl implementation. However, if itís not available on your server, you can download your own copy of cgi-lib.pl from the cgi-lib.pl Home Page.
- Obtain a copy of the script using one of the options below.
- Install signup.pl in your cgi-bin directory. You may have to rename the script to signup.cgi depending on the configuration of your server software. Set the permissions of signup.pl or signup.cgi to world-readable and executable (0755).
- Edit signup.pl or signup.cgi to reflect your situation. Pay particular attention to the Perl interpreter location (first line) and the path to sendmail specified in $mailprog. If these variables are not set correctly, your script will not work.
- Create a link to signup.pl or signup.cgi on a web page such as <a href="http://www.isp.com/yourname/cgi-bin/signup.cgi">. When the user selects that link, the form is built automatically.
Get the script file: