From owner-freebsd-questions Wed Oct 27 16:57:18 1999 Delivered-To: freebsd-questions@freebsd.org Received: from console.prisa.com (gatekeeper.prisa.com [204.94.67.66]) by hub.freebsd.org (Postfix) with SMTP id 8201114D09 for ; Wed, 27 Oct 1999 16:56:59 -0700 (PDT) (envelope-from nschein@prisa.com) From: "Nathaniel Schein" To: "Freebsd Questions" Subject: Variables / Environments Date: Wed, 27 Oct 1999 16:56:56 -0700 Message-ID: <47dd27ada65e72afb566ded9a0ab629d38179159@(null)> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am tasked with migrating a version 2.1.0 system to a 3.2 system. We are using NIS and AMD. The previous sys admin incorporated an ${ARCH} variable into the sysconfig file that became a system or global variable. The statement is: ARCH=`uname -s`/`uname -r`/`uname -m` export ARCH The ${ARCH} variable is used by AMD but when I type: echo $ARCH on the command prompt I get: ARCH: Undefined variable. My questions are, what are the different environments in FreeBSD, what runs in them and how does one gain access to them? How does one define a global variable? Also, I put the ARCH statement in the rc.conf file and referenced it through AMD by: bin type:=nfs;rhost:=g;rfs:=/usr/people/share/${ARCH}/${key} this is the same statement used in the 2.1.0 system but the system does not expand what is between `and`. The 3.2 system only sees: uname -s/uname -r/uname -m Does anyone have any insight, understands this or understands me? Nathaniel Schein System Administrator mailto:nschein@prisa.com Failure is not an option... it is integrated with every Microsoft product. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message