From owner-freebsd-stable@freebsd.org Mon Nov 23 09:32:43 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E6492A35058 for ; Mon, 23 Nov 2015 09:32:43 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9B18915D7 for ; Mon, 23 Nov 2015 09:32:42 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id DDEF228432; Mon, 23 Nov 2015 10:32:38 +0100 (CET) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id C315028431; Mon, 23 Nov 2015 10:32:37 +0100 (CET) Message-ID: <5652DD35.8080309@quip.cz> Date: Mon, 23 Nov 2015 10:32:37 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:35.0) Gecko/20100101 Firefox/35.0 SeaMonkey/2.32 MIME-Version: 1.0 To: "Michael B. Eichorn" , Brandon Allbery , Erich Dollansky CC: freebsd-stable Stable Subject: Re: su on 10.2: TERM: Undefined variable References: <5650642B.5030707@quip.cz> <1448138525.10590.18.camel@michaeleichorn.com> <5651A102.8050106@quip.cz> <5651BD59.8070203@quip.cz> <20151123073107.49bca531@X220.alogt.com> <1448253164.12995.16.camel@michaeleichorn.com> In-Reply-To: <1448253164.12995.16.camel@michaeleichorn.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Nov 2015 09:32:44 -0000 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