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

  1. Newsgroups: alt.gopher
  2. Path: sparky!uunet!noc.near.net!ns.draper.com!news.draper.com!MVS.draper.com!SEB1525
  3. From: SEB1525@MVS.draper.com (Steve Bacher)
  4. Subject: Re: problems with gopherd under inetd
  5. Message-ID: <19920727080222SEB1525@MVS.draper.com>
  6. Sender: MVS NNTP News Reader <NNMVS@MVS.draper.com>
  7. Nntp-Posting-Host: mvs.draper.com
  8. Organization: Draper Laboratory
  9. References: <1992Jul27.035950.7779@mtu.edu>
  10. Date: Mon, 27 Jul 1992 13:02:00 GMT
  11. Lines: 36
  12.  
  13. In article <1992Jul27.035950.7779@mtu.edu>,
  14. splite@mtu.edu (Steven Plite) writes:
  15.  
  16. [numerous gopherd lossages under inetd]
  17.  
  18. >This is under SunOS 4.1.1, for what it's worth.  Firing up a gopherd from the
  19. >command line with both '-l' and '-s' works fine.  Any help (including spare
  20. >hair: I've ripped out most of mine...) would be appreciated.
  21.  
  22. Send your tonsorial bill to Sun Microsystems and the rest of that
  23. crazy Unix gang.  There is an *undocumented* "feature" of inetd
  24. in that a maximum of 5 command line arguments is processed.
  25.  
  26. That's what I found out, thanks to Paul Lindner at micro.umn.edu.
  27. He says he'll document this (presumably in a future README?).
  28.  
  29. So I had to write a dummy shell script to pass all the arguments.
  30. Here's my gopherd.sh:
  31.  
  32. #!/bin/sh
  33. #
  34. # hack to get around undocumented limitation of /etc/inetd.conf that
  35. # only 5 arguments are allowed.
  36. #
  37. # Entry in /etc/inetd.conf looks like:
  38. #
  39. # gopher        stream    tcp    nowait root /usr/local/etc/gopherd.sh gopherd
  40. #
  41. cd /usr/local/etc
  42. PATH=${PATH}:/usr/local/etc
  43. export PATH
  44. gopherd -CIcu seb1525 -l /var/gopher/server-log /usr/local/lib/gopher-data 70
  45.  
  46. --
  47. Steve Bacher (Batchman)                 Draper Laboratory
  48. Internet: seb@draper.com                Cambridge, MA, USA
  49.