CSE 544 Assignment 1

Running a sample CGI program in Perl

  1. Log in to cubist (telnet, ssh, etc.) An account has been requested for you from support. Your password will most likely be your kerberos password. Notify gerome if you have any problems.
  2. Create a directory 'www' in your home directory. This is where the server finds webpages you want to publish, just like the regular cs web server. Files in this directory are accessible from the web by following a link like: http://cubist.cs.washington.edu/~[your-login-name]/
  3. Save this file into your ~/www/ directory. The file connects to a common instance of our movie database that already exists, so it should work whether or not you have set up your private database.
  4. Change permissions. Don't forget this!. The script must be executable to run. Use the following
    chmod 755 first.pl
    Also, the file cannot be group writable, and the containing directory may not be group writable, so verify that these are okay.
  5. Run the sample script at the following URL:
    http://cubist.cs.washington.edu/~[your-login-name]/first.pl
  6. Inspect the perl script and it's output. Remember to view the source of the the html page returned since this is the real output of the script.