home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / alt / gopher / 1124 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  1.5 KB

  1. Path: sparky!uunet!mcsun!sun4nl!tuegate.tue.nl!svin02!wsinis01!devet
  2. From: devet@wsinis01.info.win.tue.nl (Arjan de Vet)
  3. Newsgroups: alt.gopher
  4. Subject: Starting gopherd from crontab vs. command line problem
  5. Keywords: gopher daemon, crontab, tty
  6. Message-ID: <3755@svin02.info.win.tue.nl>
  7. Date: 30 Jul 92 07:47:35 GMT
  8. Sender: news@svin02.info.win.tue.nl
  9. Reply-To: devet@win.tue.nl (Arjan de Vet)
  10. Organization: Eindhoven University of Technology, the Netherlands
  11. Lines: 37
  12.  
  13.  
  14. I use the following script for starting gopherd:
  15.  
  16. #!/bin/sh
  17. PATH=/usr/ucb:/bin:/usr/bin:/usr/exp/bin; export PATH
  18. umask 022
  19. # to avoid a core dump in /local/gopher start gopherd in /
  20. cd /
  21. # check whether another gopherd is already running!
  22. ps aux > /tmp/$$
  23. if (grep '^exp.*gopherd' /tmp/$$ >/dev/null)
  24. then
  25.   echo Gopher daemon is already running!
  26. else
  27.   echo Starting Gopher daemon
  28.   gopherd -C -c -l /local/gopher/gopher.log &
  29. fi
  30. rm -f /tmp/$$
  31. exit 0
  32.  
  33. I have to use this script and the -c option because I do not have root
  34. privileges.
  35.  
  36. When I start this script from the commandline, each invocation of the daemon
  37. gives one line in the logfile. When this script is executed from the
  38. crontab, *each* invocation of the daemon also gives the following messages:
  39.  
  40. Not using chroot() - be careful
  41. Data directory is /local/gopherdata
  42. Port is 7000
  43. Logging to File /local/gopher/gopher.log
  44.  
  45. I think this has something to do with stdin and stdout not being a
  46. terminal. Does anybody know how to get rid of these messages? Thanks in
  47. advance.
  48.  
  49. Arjan
  50.