From owner-freebsd-questions Wed Sep 9 01:05:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA04006 for freebsd-questions-outgoing; Wed, 9 Sep 1998 01:05:11 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from studio.watertower.com (studio.watertower.com [204.178.73.201]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA03999 for ; Wed, 9 Sep 1998 01:05:10 -0700 (PDT) (envelope-from david@stumbleinn.dyn.ml.org) Received: from [206.138.229.16] (david@[206.138.229.16]) by studio.watertower.com (8.8.7/8.7.3) with SMTP id DAA14420; Wed, 9 Sep 1998 03:28:41 -0500 (CDT) Date: Wed, 9 Sep 1998 02:59:37 -0500 (CDT) From: David Vondrasek To: Neil Blakey-Milner cc: freebsd-questions@FreeBSD.ORG Subject: Re: Easy Question I hope. In-Reply-To: <19980908124347.A13053@rucus.ru.ac.za> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 8 Sep 1998, Neil Blakey-Milner wrote: > On Tue 1998-09-08 (00:53), David Vondrasek wrote: > > restart them. There HAS to be away to have then start up > > on boot. I know how to do it as a ROOT user with cron > > or in rc.d But these are user processes that I need > > restarted. And would like them to restart automaticlly. > > I have a netfu.sh in my /usr/local/etc/rc.d > > //---- > #!/bin/sh > su netfu /home/netfu/netfu.run > //---- > > It automatically starts netfu on my machine, run as the netfu user. I tried this and recieved a number of errors *sigh* I tried running the following files below: ---------- /usr/local/etc/rc.d/startirc.sh ---startirc.sh---- #!/bin/sh su david /home/david/anonirc --------- The tclsh file is located in ~/david and also in /etc and /usr/local/bin So it DOES find it. the only error I get is "Cant run anonirc " and drops out. ----anonirc--- #!/bin/sh #c0de\ exec tclsh "$0" ${1+"$@"} #*# what pass u want set pass "XXXXX" #*# what virtual host(ip) to use? leave default if none set vhost "default" #*# what server to connect to? set server "XXXXXXXXX" #*# what port to connect to? set serverp 6668 #*# what port to listen at? set port "XXXX" <<< 120 lines of script deleted >>> #--------------------------------------------------------------------------# if { [info tclversion] < 7.5 } { puts "You must have tcl 7.5 or higher:\nftp.sunlabs.com /pub/tcl/";exit } socket -server ai $port ---------------------- -- David L. Vondrasek dlv@watertower.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message