From owner-freebsd-questions@FreeBSD.ORG Thu Sep 13 18:17:15 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6014516A419 for ; Thu, 13 Sep 2007 18:17:15 +0000 (UTC) (envelope-from freebsd@philip.pjkh.com) Received: from bravo.pjkh.com (bravo.pjkh.com [72.36.232.219]) by mx1.freebsd.org (Postfix) with ESMTP id 31F5E13C465 for ; Thu, 13 Sep 2007 18:17:13 +0000 (UTC) (envelope-from freebsd@philip.pjkh.com) Received: from bravo.pjkh.com (bravo.pjkh.com [72.36.232.219]) by bravo.pjkh.com (Postfix) with ESMTP id C556B13C7D8; Thu, 13 Sep 2007 11:33:22 -0700 (PDT) Received: by bravo.pjkh.com (Postfix, from userid 1000) id A8E4B13C7C0; Thu, 13 Sep 2007 11:33:22 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by bravo.pjkh.com (Postfix) with ESMTP id A545013C404; Thu, 13 Sep 2007 11:33:22 -0700 (PDT) Date: Thu, 13 Sep 2007 11:33:22 -0700 (PDT) From: Philip Hallstrom To: Jack Barnett In-Reply-To: <46E97E2D.7070300@gmail.com> Message-ID: <20070913113230.M7771@bravo.pjkh.com> References: <46E97E2D.7070300@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: ClamAV using ClamSMTP Cc: Freebsd questions Subject: Re: Running process on startup as a user X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Sep 2007 18:17:15 -0000 > 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