Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Dec 2001 17:19:25 -0800 (PST)
From:      Philip Hallstrom <philip@adhesivemedia.com>
To:        mpd <mpd6334@cs.rit.edu>
Cc:        questions@FreeBSD.ORG
Subject:   Re: How can I set an environment variable for /bin/sh scripts (ie. cron?)
Message-ID:  <20011219171820.G59071-100000@teak.adhesivemedia.com>
In-Reply-To: <20011219195820.A37013@rochester.rr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011219171820.G59071-100000>