home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / alt / gopher / 1036 < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.7 KB  |  55 lines

  1. Newsgroups: alt.gopher
  2. Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!schemers
  3. From: schemers@leland.Stanford.EDU (Roland Schemers)
  4. Subject: Better Better Gopher->whois script available
  5. Message-ID: <1992Jul22.052143.6525@leland.Stanford.EDU>
  6. Sender: news@leland.Stanford.EDU (Mr News)
  7. Organization: Distributed Computing Group, Stanford University
  8. References: <199207220129.AA25891@mudhoney.micro.umn.edu>
  9. Distribution: alt
  10. Date: Wed, 22 Jul 92 05:21:43 GMT
  11. Lines: 42
  12.  
  13. In article <199207220129.AA25891@mudhoney.micro.umn.edu> lindner@boombox.micro.umn.edu. writes:
  14. > #
  15. > # a straight whois query, expect format of "whois <hostname> query..."
  16. > #
  17.  
  18. Actually there is a better way to send back the index.
  19. For example:
  20.  
  21. >    &reply("0Raw Search Results\twhois $host $query\t$Gatehost\t$Port");
  22.  
  23. Could just be:
  24.  
  25. &reply("0Raw Search Results\t$query\t$host\t43");
  26.  
  27. This cuts out the middle man :-)
  28.  
  29. Same with all the other ones:
  30.  
  31. >          &reply("0$1\twhois $host $newquery\t$Gatehost\t$Port");
  32.           &reply("0$1\t$newquery\t$host\t43");
  33.  
  34. Thats how my current script does it.
  35.  
  36. From my previous (long winded :-O) posting, the path becomes:
  37.  
  38. client "qwhois host query"  -> mudhoney
  39. mudhoney "query"            -> whois server 
  40. whois server "whois output" -> mudhoney
  41. mudhoney "dir result"       -> client
  42. client "give me raw result" -> whois server
  43. whois server "whois output" -> client
  44.  
  45. This is still fairly long, but shorter then the first version :-)
  46.  
  47. Roland
  48.  
  49.  
  50. -- 
  51. Roland J. Schemers III              |            Networking Systems
  52. Systems Programmer                  |            168 Pine Hall   (415)-723-6740
  53. Distributed Computing Group         |            Stanford, CA 94305-4122
  54. Stanford University                 |            schemers@Slapshot.Stanford.EDU
  55.