home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.gopher
- Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!schemers
- From: schemers@leland.Stanford.EDU (Roland Schemers)
- Subject: Better Better Gopher->whois script available
- Message-ID: <1992Jul22.052143.6525@leland.Stanford.EDU>
- Sender: news@leland.Stanford.EDU (Mr News)
- Organization: Distributed Computing Group, Stanford University
- References: <199207220129.AA25891@mudhoney.micro.umn.edu>
- Distribution: alt
- Date: Wed, 22 Jul 92 05:21:43 GMT
- Lines: 42
-
- In article <199207220129.AA25891@mudhoney.micro.umn.edu> lindner@boombox.micro.umn.edu. writes:
- > #
- > # a straight whois query, expect format of "whois <hostname> query..."
- > #
-
- Actually there is a better way to send back the index.
- For example:
-
- > &reply("0Raw Search Results\twhois $host $query\t$Gatehost\t$Port");
-
- Could just be:
-
- &reply("0Raw Search Results\t$query\t$host\t43");
-
- This cuts out the middle man :-)
-
- Same with all the other ones:
-
- > &reply("0$1\twhois $host $newquery\t$Gatehost\t$Port");
- &reply("0$1\t$newquery\t$host\t43");
-
- Thats how my current script does it.
-
- From my previous (long winded :-O) posting, the path becomes:
-
- client "qwhois host query" -> mudhoney
- mudhoney "query" -> whois server
- whois server "whois output" -> mudhoney
- mudhoney "dir result" -> client
- client "give me raw result" -> whois server
- whois server "whois output" -> client
-
- This is still fairly long, but shorter then the first version :-)
-
- Roland
-
-
- --
- Roland J. Schemers III | Networking Systems
- Systems Programmer | 168 Pine Hall (415)-723-6740
- Distributed Computing Group | Stanford, CA 94305-4122
- Stanford University | schemers@Slapshot.Stanford.EDU
-