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