Message Board -  Archive

[ Login ] [ Create Account ]
[ Board List ] [ View Board ] [ Post Reply ]
  Author  Subject: Re: BASH Script Execution
Archive  

Posted on 03-16-2001 02:03 a.m. ET  reply

Original Poster: "Mark W. Krentel" <krentel@dreamscape.com>

> is there a way to run a script in the background during startup of the
> system? I added a command to execute a script in the rc.local file

Sure, you just start it in rc.local with "&" at the end of the
command, just like you would in an xterm. This will run it as root,
since root runs rc.local.

What does the script do? You want it to run as a daemon, like inetd
or lpd? Remember that the script should not write anything to stdout
or stderr (if it does, it will probably appear on the console). If it
needs to write, it should write to a log file.

--Mark

< Previous 1 Next >

Site Contents