From owner-freebsd-questions Wed Dec 19 17:19:59 2001 Delivered-To: freebsd-questions@freebsd.org Received: from teak.adhesivemedia.com (teak.adhesivemedia.com [207.202.159.79]) by hub.freebsd.org (Postfix) with ESMTP id BC52337B416 for ; Wed, 19 Dec 2001 17:19:57 -0800 (PST) Received: from localhost (philip@localhost) by teak.adhesivemedia.com (8.11.6/8.11.6) with ESMTP id fBK1JPD70373; Wed, 19 Dec 2001 17:19:25 -0800 (PST) (envelope-from philip@adhesivemedia.com) Date: Wed, 19 Dec 2001 17:19:25 -0800 (PST) From: Philip Hallstrom To: mpd Cc: questions@FreeBSD.ORG Subject: Re: How can I set an environment variable for /bin/sh scripts (ie. cron?) In-Reply-To: <20011219195820.A37013@rochester.rr.com> Message-ID: <20011219171820.G59071-100000@teak.adhesivemedia.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > On Wed, Dec 19, 2001 at 03:45:59PM -0800, Philip Hallstrom wrote: > > Well, I found that I can just assign my variable in my crontab and it > > seems to take... which solves my immediate problem, but I would still like > > to know if this is possible without having to add that stuff to cron... > > but isn't that why you -can- add that stuff to cron? > It's possible, but putting it in the user's crontab is the easiest way. Probably :) But what if say you have some other script (maybe a CGI or something) that execs a /bin/sh script and you'd really like that to automatically be set...?? Anyway, I got what I need working so nobody kill themselves over it, but it is curious. -philip To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message