Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Oct 1999 16:56:56 -0700
From:      "Nathaniel Schein" <nschein@prisa.com>
To:        "Freebsd Questions" <freebsd-questions@freebsd.org>
Subject:   Variables / Environments
Message-ID:  <47dd27ada65e72afb566ded9a0ab629d38179159@(null)>

next in thread | raw e-mail | index | archive | help
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




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