On Sun, Jun 06, 1999 at 10:58:13AM -0700, [EMAIL PROTECTED] wrote:
> First of all put the following at the bottom of your /etc/rc.d/rc.local
> file:
>
> /Your/path/to/mprime/mprime &
I'd recommend starting it as a particular user not as root. I like to
generalise this and give the user a script file to run at boot, eg put
this at the end of rc.local
# start the users' background jobs off
if [ -f ~user/.rc.local ]; then
su - user -c ./.rc.local &
fi
And then something like this into ~user/.rc.local
#!/bin/sh
(cd ~/mprime ; ./mprime -d >>out.txt 2>&1 &)
> To start it from the command line do this:
>
> nohup /Your/path/to/mprime/mprime &
Nohup shouldn't be necessary with the & if you are using a modern
shell (eg bash) though it certainly is necessary on some old /bin/sh's
--
|- Nick Craig-Wood -- http://www.axis.demon.co.uk/ -- [EMAIL PROTECTED] -|
________________________________________________________________
Unsubscribe & list info -- http://www.scruz.net/~luke/signup.htm