Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Sep 1998 02:59:37 -0500 (CDT)
From:      David Vondrasek <david@stumbleinn.dyn.ml.org>
To:        Neil Blakey-Milner <nbm@rucus.ru.ac.za>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Easy Question I hope.
Message-ID:  <Pine.BSF.4.01.9809090250580.326-100000@stumbleinn.dyn.ml.org>
In-Reply-To: <19980908124347.A13053@rucus.ru.ac.za>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.01.9809090250580.326-100000>