From owner-freebsd-questions@FreeBSD.ORG Sun Dec 4 01:51:35 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07A7116A41F for ; Sun, 4 Dec 2005 01:51:34 +0000 (GMT) (envelope-from cperciva@sfu.ca) Received: from pobox.sfu.ca (pobox.sfu.ca [142.58.101.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 820BB43D46 for ; Sun, 4 Dec 2005 01:51:34 +0000 (GMT) (envelope-from cperciva@sfu.ca) Received: from fraser.sfu.ca (daemon@fraser.sfu.ca [142.58.101.25]) by pobox.sfu.ca (8.12.10/8.12.10/SFU-6.0G) with ESMTP id jB41nVZZ021370; Sat, 3 Dec 2005 17:49:31 -0800 (PST) Received: (from cperciva@localhost) by fraser.sfu.ca (8.12.11/8.12.3/SFU-6.0C) id jB41pWQr000199; Sat, 3 Dec 2005 17:51:32 -0800 (PST) Date: Sat, 3 Dec 2005 17:51:32 -0800 From: Colin Andrew Percival To: Ian Lord Message-ID: <20051204015132.GA29700@sfu.ca> References: <7.0.0.16.2.20051203115712.054a1c70@msdi.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7.0.0.16.2.20051203115712.054a1c70@msdi.ca> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by antibody.sfu.ca running antivirus scanner Cc: freebsd-questions@freebsd.org Subject: Re: schedule a script at "system startup" 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: Sun, 04 Dec 2005 01:51:36 -0000 On Sat, Dec 03, 2005 at 08:18:12PM -0500, Ian Lord wrote: > I would like to run a shell script at system startup which needs to > run under a specific uid... > > I don't see anything for this in man cron... > > is there a way to do it with cron ? or otherwise is there another way ? Create a crontab file for the user, and use the magic value "@reboot" for the date/time. Colin Percival