Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Nov 2015 10:32:37 +0100
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        "Michael B. Eichorn" <ike@michaeleichorn.com>, Brandon Allbery <allbery.b@gmail.com>, Erich Dollansky <erichsfreebsdlist@alogt.com>
Cc:        freebsd-stable Stable <freebsd-stable@freebsd.org>
Subject:   Re: su on 10.2: TERM: Undefined variable
Message-ID:  <5652DD35.8080309@quip.cz>
In-Reply-To: <1448253164.12995.16.camel@michaeleichorn.com>
References:  <5650642B.5030707@quip.cz> <1448138525.10590.18.camel@michaeleichorn.com> <5651A102.8050106@quip.cz> <5651BD59.8070203@quip.cz> <20151123073107.49bca531@X220.alogt.com> <CAKFCL4WrAJfKreOx9mfS_EN4KGHdrpOMG9spUXJCtG1G%2BP=zGA@mail.gmail.com> <1448253164.12995.16.camel@michaeleichorn.com>

index | next in thread | previous in thread | raw e-mail

Michael B. Eichorn wrote on 11/23/2015 05:32:
> On Sun, 2015-11-22 at 19:43 -0500, Brandon Allbery wrote:
>> On Sun, Nov 22, 2015 at 6:31 PM, Erich Dollansky <
>> erichsfreebsdlist@alogt.com> wrote:
>>
>>> this is a bit strange. TERM should be always define to tell the
>>> applications the capabilities of your terminal.
>>>
>>
>> Things run from crontab don't have a terminal.
>
> Indeed cron only sets SHELL HOME PATH and USER
>
>>
>> I note the error message looks like csh; check the target user's
>> .cshrc.
>>
>
> but we are running from cron which defaults to sh inside a script with
> a #!/bin/sh and the call is su -m which should leave the environment
> unmodified and use the current shell (presumably still sh) as the login
> shell.
>
> Also www has a home of /nonexistant, no .cshrc file to be had.
>
>
> Maybe freebsd-update IDS is in order?

We don't use freebsd-update. All our machines are updated / upgraded 
from central build server by "make installkernel && make installworld" 
throught NFS mounted /usr/src and /usr/obj

I will try this script in clean FreeBSD 10.2 install in VirtualBox and 
will report results later.

Thank you for your time!

Miroslav Lachman



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5652DD35.8080309>