<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/usr/athena/bin/perl -T

$WWWROOT = "/var/www/root";

print &lt;&lt;HTTPHEAD;
Content-Type: text/html
Status: $ENV{'REDIRECT_STATUS'} Gone

&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd"&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Gone&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;h1&gt;410 Gone&lt;/h1&gt;
HTTPHEAD

$ru = $ENV{'REDIRECT_URL'};

if ($ru =~ m:^/people/([^/]+)$:) {
   $person = $1;
   $actual = readlink "$WWWROOT/people/$person";
}
elsif ($ru =~ m:^/people/([^/]+)/:) {
   $person = $1;
   $actual = readlink "$WWWROOT/people/$person";
}

undef $addr;

if ($actual =~ m|/afs/sipb(\.mit\.edu)?/user/(\w{2,8})|) {
   $addr = $2;
} elsif ($actual =~ m%/afs/athena(\.mit\.edu)?/user/(./.|./other|other)/(\w{2,8})%) {
   $addr = $3;
}

$hesiod = 1;

# safely exec hesinfo to determine if the address we've divined is
# valid
if($addr) {
   $pid = open(CHILD, "-|");
   if(defined $pid) {
      if($pid == 0) {
# keep hesinfo from writing to our stderr
         open(SAVERR, "&gt;&amp;STDERR") || warn "unable to dup stderr\n";
         open(STDERR, "&gt;/dev/null") || warn "stderr redirect failed\n";

         exec "/bin/athena/hesinfo", $addr, "pobox";

# retrieve stderr because we have an error to report
         open(STDERR, "&gt;&amp;SAVERR");
         die "exec failed (/bin/athena/hesinfo): $!\n";
      } else {
         @hesdata = &lt;CHILD&gt;;
         close(CHILD);
# child will return zero on success, nonzero on failure
         if($? != 0) {
	     $hesiod = 0;
         }
      }
   } else {
      warn "unable to fork to exec hesinfo\n";
   }
}

# if all the above tests are passed, $addr will have a value, otherwise
# it'll be undefined
if($hesiod == 1) {
   print &lt;&lt;UCONTACT;

&lt;p&gt;You tried to access&lt;/p&gt;
&lt;div align=center&gt;&lt;code&gt;http://stuff.mit.edu$ENV{'REDIRECT_URL'}&lt;/code&gt;&lt;/div&gt;
&lt;p&gt;This web page is no longer present on our server. A possible
contact address for the owner of this web page is
&lt;a href="mailto:$addr\@mit.edu"&gt;$addr\@mit.edu&lt;/a&gt;.
If you send mail, please include the URL you tried to access in
the message you send so the owner of the page can fix the problem more
easily.&lt;/p&gt;
UCONTACT
} else {
   print &lt;&lt;WCONTACT;
&lt;p&gt;The person with the username &lt;b&gt;$addr&lt;/b&gt; no longer has an MIT account and
their web pages are no longer available on stuff.mit.edu.&lt;/p&gt;
&lt;p&gt;Usually this happens because&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the person was a student but has since graduated
&lt;li&gt;the person formerly worked at MIT but has left
&lt;/ul&gt;
&lt;p&gt;The web page you requested was in a personal directory of a former student or
staff member at MIT. Since this person is gone now, their personal
directory has been removed. Their web pages are not located anywhere on
stuff.mit.edu.
We don't know whether this person has a web page at some other site, or
which other site would be likely.
If you happen to be an MIT alumnus/alumna,
you may be able to locate this person via the &lt;a href="http://web.mit.edu/alum/"&gt;MIT Alumni Association&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To try to locate this person's web pages, you could also visit search
engines such as&lt;/p&gt;
&lt;ul&gt; 
&lt;li&gt;&lt;a href="http://www.google.com/"&gt;Google&lt;/a&gt;
&lt;li&gt;&lt;a href="http://www.altavista.com/"&gt;altavista&lt;/a&gt;
&lt;li&gt;&lt;a href="http://www.alltheweb.com/"&gt;alltheweb&lt;/a&gt;
&lt;li&gt;&lt;a href="http://www.hotbot.com/"&gt;Hotbot&lt;/a&gt;
&lt;li&gt;&lt;a href="http://www.lycos.com/"&gt;Lycos&lt;/a&gt;
&lt;/ul&gt;
WCONTACT
}

print &lt;&lt;HTTPTAIL;
&lt;/body&gt;
&lt;/html&gt;
HTTPTAIL

exit 0;
</pre></body></html>