home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / infosyst / gopher / 2131 < prev    next >
Encoding:
Text File  |  1993-01-28  |  2.0 KB  |  59 lines

  1. Newsgroups: comp.infosystems.gopher
  2. Path: sparky!uunet!ukma!tulane!merlin!pollard
  3. From: pollard@pops.navo.navy.mil (Jesse Pollard)
  4. Subject: Re: Gopher *client* over inetd
  5. Nntp-Posting-Host-[nntpd-3692]: merlin.navo.navy.mil
  6. Message-ID: <1993Jan29.010125.15305@cs.tulane.edu>
  7. Sender: news@cs.tulane.edu
  8. Reply-To: pollard@pops.navo.navy.mil
  9. Organization: POPS Supercomputer Center
  10. References: <C1JMAy.E7s@news2.cis.umn.edu>
  11. Date: Fri, 29 Jan 1993 01:01:25 GMT
  12. Lines: 45
  13.  
  14. >gopher client to compile on our Sequent S27.  However, we would like to be
  15. >able to run the Gopher *client* (not the server) over inetd, so that when
  16. >users initiate a 'telnet' session from our campus net, they connect directly
  17. >to the Gopher client, which in turn connects to our Gopher server..
  18.  
  19. This sounds like it would disable telnet...
  20.  
  21. Assuming this is what is desired then the easiest way to do this would be to
  22. replace the login command with the following:
  23.  
  24. ============= login script - name must be login =============
  25. #!/bin/sh 
  26. #       login - wrapper script to start gopher from an incoming telnet
  27. #               NOTE: login is actually performed for non telnet operations
  28. #------------------------------------------------------------------------
  29.  
  30. GOPHER=....    # path to the gopher system
  31.  
  32. if [ "$1" = "-h" ]; then    # must be a telnet...
  33.     cd /tmp            # just for possible core dumps
  34.     # enable terminal for message output
  35.     reset=`stty -g`
  36.     stty 2526:5:1ad:8a3b:3:1c:7f:15:4:0:0:0:11:13:1a:19:12:f:17:16:0
  37.     # start gopher
  38.     exec $GOPHER
  39. fi
  40. exec /bin/login.orig $*
  41. ============= end of login =================
  42.  
  43. The stty modes used must be appropriate for the system running this.
  44.  
  45. A script such as this is used on SUNOS 4.1.1 to output a warning message
  46. before login.
  47.  
  48. bytheway.. the "quotes" around the stty -g really are back quotes. The
  49. window I'm editing this in make it look like apostrophe's, so I don't
  50. know exactly what is being sent.
  51.  
  52.  
  53. ---
  54. Jesse I Pollard, II
  55. Email: pollard@pops.navo.navy.mil
  56.  
  57. Any opinions expressed are solely my own.
  58.  
  59.