From owner-freebsd-questions@FreeBSD.ORG Wed Mar 2 21:38:19 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 00C9B16A4CE for ; Wed, 2 Mar 2005 21:38:19 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.199.47.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC56D43D1F for ; Wed, 2 Mar 2005 21:38:18 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id DA8825136F; Wed, 2 Mar 2005 13:38:17 -0800 (PST) Date: Wed, 2 Mar 2005 13:38:17 -0800 From: Kris Kennaway To: Jarrod - Cybertek Message-ID: <20050302213817.GB90379@xor.obsecurity.org> References: <20050302102921.GA92791@xor.obsecurity.org> <20050302110159.E6E2F1FFC6D@overport.cybertek.co.za> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mojUlQ0s9EVzWg2t" Content-Disposition: inline In-Reply-To: <20050302110159.E6E2F1FFC6D@overport.cybertek.co.za> User-Agent: Mutt/1.4.2.1i cc: questions@freebsd.org cc: 'Kris Kennaway' Subject: Re: referencing in files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2005 21:38:19 -0000 --mojUlQ0s9EVzWg2t Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 02, 2005 at 01:02:05PM +0200, Jarrod - Cybertek wrote: > Ok sorry. >=20 > Precisely. I have a file (actually a script, sorry) that has a lot of the > settings for a client in, eg IP addresses, interface they connect on etc. > and I use the motd to keep all this together, just to make things easier > when I log into my server. Now I want the motd to update (if at all > possible) to the settings in this file when I change it. Maybe a script IS > the only way to go. >=20 > Here is an example: >=20 > Say i have a file /root/setup.client.sh, and it has this line: > IFACE=3Dng10 > Now I want to have the motd, when it is displayed after login, to go fetch > the current value of that IFACE, and display that value. >=20 > Is it a bit clearer? Yes. The way to go is to just make the script also update the motd when you run it. Kris --mojUlQ0s9EVzWg2t Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCJjJJWry0BWjoQKURAn4nAKCA1+VtsNwLFTLpBXKS5qtdAd/NBACgwPs3 8OU2hvpsGjM6kT6P2iVXp1A= =GdQG -----END PGP SIGNATURE----- --mojUlQ0s9EVzWg2t--