From owner-freebsd-questions@FreeBSD.ORG Thu Sep 13 18:18:37 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 D66AA16A469 for ; Thu, 13 Sep 2007 18:18:37 +0000 (UTC) (envelope-from d.hill@yournetplus.com) Received: from duane.dbq.yournetplus.com (duane.dbq.yournetplus.com [65.124.230.214]) by mx1.freebsd.org (Postfix) with ESMTP id A043D13C4A5 for ; Thu, 13 Sep 2007 18:18:37 +0000 (UTC) (envelope-from d.hill@yournetplus.com) Received: from [192.168.1.10] (unknown [192.168.1.1]) by duane.dbq.yournetplus.com (Postfix) with ESMTP id D2E876D439; Thu, 13 Sep 2007 18:18:36 +0000 (UTC) Date: Thu, 13 Sep 2007 18:18:36 +0000 (UTC) From: Duane Hill X-X-Sender: d.hill@duane.dbq.yournetplus.com To: Jack Barnett In-Reply-To: <46E97E2D.7070300@gmail.com> Message-ID: <20070913181644.A78618@duane.dbq.yournetplus.com> References: <46E97E2D.7070300@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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:18:37 -0000 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. ------ _|_ (_| |