Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Sep 2007 11:33:22 -0700 (PDT)
From:      Philip Hallstrom <freebsd@philip.pjkh.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:  <20070913113230.M7771@bravo.pjkh.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
> 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?

Create a crontab entry for the 'foo' user that reads:

@reboot /home/foo/scripts/MyScript.sh

http://www.freebsd.org/cgi/man.cgi?query=crontab&sektion=5



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070913113230.M7771>