home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.gopher
- Path: sparky!uunet!noc.near.net!ns.draper.com!news.draper.com!MVS.draper.com!SEB1525
- From: SEB1525@MVS.draper.com (Steve Bacher)
- Subject: Re: problems with gopherd under inetd
- Message-ID: <19920727080222SEB1525@MVS.draper.com>
- Sender: MVS NNTP News Reader <NNMVS@MVS.draper.com>
- Nntp-Posting-Host: mvs.draper.com
- Organization: Draper Laboratory
- References: <1992Jul27.035950.7779@mtu.edu>
- Date: Mon, 27 Jul 1992 13:02:00 GMT
- Lines: 36
-
- In article <1992Jul27.035950.7779@mtu.edu>,
- splite@mtu.edu (Steven Plite) writes:
-
- [numerous gopherd lossages under inetd]
-
- >This is under SunOS 4.1.1, for what it's worth. Firing up a gopherd from the
- >command line with both '-l' and '-s' works fine. Any help (including spare
- >hair: I've ripped out most of mine...) would be appreciated.
-
- Send your tonsorial bill to Sun Microsystems and the rest of that
- crazy Unix gang. There is an *undocumented* "feature" of inetd
- in that a maximum of 5 command line arguments is processed.
-
- That's what I found out, thanks to Paul Lindner at micro.umn.edu.
- He says he'll document this (presumably in a future README?).
-
- So I had to write a dummy shell script to pass all the arguments.
- Here's my gopherd.sh:
-
- #!/bin/sh
- #
- # hack to get around undocumented limitation of /etc/inetd.conf that
- # only 5 arguments are allowed.
- #
- # Entry in /etc/inetd.conf looks like:
- #
- # gopher stream tcp nowait root /usr/local/etc/gopherd.sh gopherd
- #
- cd /usr/local/etc
- PATH=${PATH}:/usr/local/etc
- export PATH
- gopherd -CIcu seb1525 -l /var/gopher/server-log /usr/local/lib/gopher-data 70
-
- --
- Steve Bacher (Batchman) Draper Laboratory
- Internet: seb@draper.com Cambridge, MA, USA
-