From owner-freebsd-questions@FreeBSD.ORG Sun Dec 4 16:05:42 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 06E3B16A41F for ; Sun, 4 Dec 2005 16:05:42 +0000 (GMT) (envelope-from webnamechina@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61C0943D66 for ; Sun, 4 Dec 2005 16:05:41 +0000 (GMT) (envelope-from webnamechina@gmail.com) Received: by zproxy.gmail.com with SMTP id 9so710069nzo for ; Sun, 04 Dec 2005 08:05:40 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=JEYqP8e/45L+mb6xoixQ6dvs0putUbJjRIH13GPRleD9O4/OEAnBq7oOd+aqOx2Q8JwEcT4HwSfgOqdqMQejkZdZwyUZ+pDzSGzCKPTHrukRuD2/BxVbuY6xyLW+WbvpiQ60Qcd5bpngLOW93wx4aZ6mKZF4/KqxpG615enWJ6w= Received: by 10.37.14.38 with SMTP id r38mr4430542nzi; Sun, 04 Dec 2005 08:05:40 -0800 (PST) Received: by 10.37.13.66 with HTTP; Sun, 4 Dec 2005 08:05:40 -0800 (PST) Message-ID: <25b88cc90512040805u7b5cf920mb0ca3c70b0f38ed3@mail.gmail.com> Date: Mon, 5 Dec 2005 00:05:40 +0800 From: =?GB2312?B?1dTD+g==?= To: freebsd-questions@freebsd.org In-Reply-To: <20051204164431.Q8514@maren.thelosingend.net> MIME-Version: 1.0 References: <7.0.0.16.2.20051203201101.061b5dd8@msdi.ca> <20051204164431.Q8514@maren.thelosingend.net> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 16:05:42 -0000 sometime ,you can use the commant : su - usename -c commant man su you will find it......good luck On 12/4/05, Svein Halvor Halvorsen < svein-freebsd-questions@theloosingend.net> wrote: > > > * Ian Lord [2005-12-03 20:18 -0500] > > 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... > > See crontab(5) > > You can use the @reboot magic to make cron run a script once, at startup. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > -- ========================== NAME :webnamechina N U M :9809338 E--mail:webnamechina@gmail.com ==========================