Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Mar 2007 14:44:46 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Running script from rc.d as local user
Message-ID:  <44vehaw6a9.fsf@be-well.ilk.org>
In-Reply-To: <44649aflud.fsf@be-well.ilk.org> (Lowell Gilbert's message of "Fri\, 09 Mar 2007 11\:00\:42 -0500")
References:  <20070308085511.1ECA.GERARD@seibercom.net> <6.0.0.22.2.20070308084942.0247a948@mail.computinginnovations.com> <20070308100752.3884e0a6@localhost> <44649aflud.fsf@be-well.ilk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> writes:

> Gerard Seibert <gerard@seibercom.net> writes:
>
>> On Thu, 08 Mar 2007 08:52:20 -0600
>> Derek Ragona <derek@computinginnovations.com> wrote:
>
>>> You should add a line:
>>> /usr/bin/su [to your username]
>>
>> OK, I'll try that.
>
> A way to do this without needing special permissions to
> touch system files is to use cron; it has an "@reboot"
> time specification for this purpose.

The original message finally arrived in my mailbox, so I see that
you've already tried cron and didn't know how to set environmental
variables that way.  The answers are simple; set them in the crontab
(usually on the command line you're executing), or write a wrapper
script and call that from your crontab.



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