From owner-freebsd-questions@FreeBSD.ORG Fri Apr 27 06:32:59 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F189316A401 for ; Fri, 27 Apr 2007 06:32:59 +0000 (UTC) (envelope-from emarikit@infoweapons.com) Received: from ironmail.infoweapons.com (ironmail.infoweapons.com [58.71.34.140]) by mx1.freebsd.org (Postfix) with ESMTP id B704B13C468 for ; Fri, 27 Apr 2007 06:32:58 +0000 (UTC) (envelope-from emarikit@infoweapons.com) Received: (qmail 24557 invoked by uid 98); 27 Apr 2007 06:06:13 -0000 Received: from 10.4.3.41 by ironmail.cebu.infoweapons.com (envelope-from , uid 82) with qmail-scanner-1.25 (clamdscan: 0.86.1/959. spamassassin: 3.0.4. Clear:RC:1(10.4.3.41):. Processed in 0.216685 secs); 27 Apr 2007 06:06:13 -0000 X-Qmail-Scanner-Mail-From: emarikit@infoweapons.com via ironmail.cebu.infoweapons.com X-Qmail-Scanner: 1.25 (Clear:RC:1(10.4.3.41):. Processed in 0.216685 secs) Received: from elan.cebu.infoweapons.com (10.4.3.41) by ironmail.infoweapons.com with AES256-SHA encrypted SMTP; 27 Apr 2007 06:06:12 -0000 Message-ID: <463193FE.4090504@infoweapons.com> Date: Fri, 27 Apr 2007 14:11:10 +0800 From: Elan Marikit Organization: Infoweapons Corp User-Agent: Thunderbird 2.0.0.0 (X11/20070423) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: set env in chroot script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2007 06:33:00 -0000 Greetz, I am a newbie of FreeBSD and I want to know how to set environment inside chroot in a shell script. My script looks like this: chroot $NEWROOT /bin/sh -c "" And I want to set an environment, before the . Is it possible that it will inherit my parent environment? like the environment set in my script? Thanks, Elan