Date: Thu, 13 Sep 2007 18:18:36 +0000 (UTC) From: Duane Hill <d.hill@yournetplus.com> To: Jack Barnett <jackbarnett@gmail.com> Cc: Freebsd questions <freebsd-questions@freebsd.org> Subject: Re: Running process on startup as a user Message-ID: <20070913181644.A78618@duane.dbq.yournetplus.com> In-Reply-To: <46E97E2D.7070300@gmail.com> References: <46E97E2D.7070300@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 13 Sep 2007 at 13:15 -0500, jackbarnett@gmail.com confabulated: > > 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? You could put the script in a crontab for that user: @reboot /bin/sh /home/foo/scripts/MyScript.sh According to 'man 5 crontab', @reboot runs the script once at startup. ------ _|_ (_| |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070913181644.A78618>