Date: Thu, 13 Sep 2007 21:21:13 +0300 From: Manolis Kiagias <sonicy@otenet.gr> To: jackbarnett@gmail.com Cc: Freebsd questions <freebsd-questions@freebsd.org> Subject: Re: Running process on startup as a user Message-ID: <46E97F99.5000904@otenet.gr> In-Reply-To: <46E97E2D.7070300@gmail.com> References: <46E97E2D.7070300@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Jack Barnett wrote: > > Using FreeBSD 6.2 x86. > > I have a script called: > > /home/foo/scripts/MyScript.sh > The user is 'foo'. The password is 'bar'. > > What I'm trying to do is run the MyScript.sh command on startup (that > way if the box reboots, then this users process also re-starts it's > self). > > thoughts? > Looks like a good job for a user crontab: Login as the foo user, type: crontab -e Insert the line: @reboot /home/foo/scripts/MyScript.sh Save, exit, you are done. Look at man 5 crontab for more details and possible caveats.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46E97F99.5000904>