Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Mar 2005 13:02:05 +0200
From:      "Jarrod - Cybertek" <jarrod@cybertek.co.za>
To:        "'Kris Kennaway'" <kris@obsecurity.org>
Cc:        questions@freebsd.org
Subject:   RE: referencing in files
Message-ID:  <20050302110159.E6E2F1FFC6D@overport.cybertek.co.za>
In-Reply-To: <20050302102921.GA92791@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Ok sorry.

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.

Here is an example:

Say i have a file /root/setup.client.sh, and it has this line:
	IFACE=ng10
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.

Is it a bit clearer?

----------------------------------------------------------------
Jarrod Meyer | Technical | C Y B E R T E K
Tel: 031-2075287  Fax: 031-2082210
E-mail: jarrod@cybertek.co.za 
Website: www.cybertek.co.za
 
 

> -----Original Message-----
> From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-
> questions@freebsd.org] On Behalf Of Kris Kennaway
> Sent: Wednesday, March 02, 2005 12:29 PM
> To: Jarrod - Cybertek
> Cc: questions@freebsd.org; 'Kris Kennaway'
> Subject: Re: referencing in files
> 
> On Wed, Mar 02, 2005 at 11:43:13AM +0200, Jarrod - Cybertek wrote:
> > First, thanks. What I just wanted to try out is to have my /etc/motd
> updated
> > automatically from a changing value in another text file. So that way I
> > wouldn't have to update both every time. No way for that? Thanks.
> 
> You keep going around in circles saying the same thing.  Be specific.
> What, *precisely* do you want your motd to do?
> 
> Kris



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