home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sun4nl!tuegate.tue.nl!svin02!wsinis01!devet
- From: devet@wsinis01.info.win.tue.nl (Arjan de Vet)
- Newsgroups: alt.gopher
- Subject: Starting gopherd from crontab vs. command line problem
- Keywords: gopher daemon, crontab, tty
- Message-ID: <3755@svin02.info.win.tue.nl>
- Date: 30 Jul 92 07:47:35 GMT
- Sender: news@svin02.info.win.tue.nl
- Reply-To: devet@win.tue.nl (Arjan de Vet)
- Organization: Eindhoven University of Technology, the Netherlands
- Lines: 37
-
-
- I use the following script for starting gopherd:
-
- #!/bin/sh
- PATH=/usr/ucb:/bin:/usr/bin:/usr/exp/bin; export PATH
- umask 022
- # to avoid a core dump in /local/gopher start gopherd in /
- cd /
- # check whether another gopherd is already running!
- ps aux > /tmp/$$
- if (grep '^exp.*gopherd' /tmp/$$ >/dev/null)
- then
- echo Gopher daemon is already running!
- else
- echo Starting Gopher daemon
- gopherd -C -c -l /local/gopher/gopher.log &
- fi
- rm -f /tmp/$$
- exit 0
-
- I have to use this script and the -c option because I do not have root
- privileges.
-
- When I start this script from the commandline, each invocation of the daemon
- gives one line in the logfile. When this script is executed from the
- crontab, *each* invocation of the daemon also gives the following messages:
-
- Not using chroot() - be careful
- Data directory is /local/gopherdata
- Port is 7000
- Logging to File /local/gopher/gopher.log
-
- I think this has something to do with stdin and stdout not being a
- terminal. Does anybody know how to get rid of these messages? Thanks in
- advance.
-
- Arjan
-