From hugh@ibc.wustl.edu Tue Dec 6 09:39:47 1994 Return-Path: Received: from wugate.wustl.edu by alumni.caltech.edu with SMTP (8.6.4/DEI:4.41) id JAA18552; Tue, 6 Dec 1994 09:39:38 -0800 Received: by wugate.wustl.edu (5.67b/WUSTL-0.3) with SMTP id AA02346; Tue, 6 Dec 1994 11:39:11 -0600 Received: by ibc.WUStL.EDU (8.6.9/SMI-SVR4) id KAA07534; Tue, 6 Dec 1994 10:43:58 -0600 Date: Tue, 6 Dec 1994 10:43:58 -0600 From: hugh@ibc.wustl.edu (Hugh Chou) Message-Id: <199412061643.KAA07534@ibc.WUStL.EDU> To: dank@alumni.caltech.edu Subject: re: e-mail web page X-Sun-Charset: US-ASCII Status: RO > > cool. i was thinking of doing a web interface to > uwho- guess you beat me to it! > care to share your cgi script? > - Dan > Sure, since I used your utility you can look at my script. I even modified it a little (I wrote it a while back). Oh thanks for telling me about the bad link to nexor too. Hugh #!/usr/local/bin/perl $arglist = $ENV{'QUERY_STRING'}; @r = split("&",$arglist); $nam = substr(@r[0],4); $org = substr(@r[1],4); if (substr($nam,0,4) eq "list" | @ARGV[0] eq "list") { @u = `/usr/local/bin/uwho -list`; print "Content-type: text/html\n\n"; print "\nListing of available servers\n"; print "

Listing of available servers

\n"; print "
\n"; print "

Search for \n"; print " .

\n"; print "
Select an origanization from below:"; print "\n"; print "
\n"; } else { @u = `/usr/local/bin/uwho $nam @ $org`; print "\nResults of search for <i> $nam @ $org </i> \n"; print "

Results of search for $nam @ $org

\n"; print "

The following is the output from the uwho program.\n"; print "


\n";
  for ($i = 0; $i <= $#u; $i++) { print @u[$i]; }
  print "
Back\n"; }