Date: Fri, 27 Apr 2007 14:11:10 +0800 From: Elan Marikit <emarikit@infoweapons.com> To: freebsd-questions@freebsd.org Subject: set env in chroot script Message-ID: <463193FE.4090504@infoweapons.com>
next in thread | raw e-mail | index | archive | help
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 "<command>" And I want to set an environment, before the <command>. Is it possible that it will inherit my parent environment? like the environment set in my script? Thanks, Elan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?463193FE.4090504>