referencing in files

Kris Kennaway kris at obsecurity.org
Wed Mar 2 21:38:19 GMT 2005


On Wed, Mar 02, 2005 at 01:02:05PM +0200, Jarrod - Cybertek wrote:
> 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?

Yes.  The way to go is to just make the script also update the motd
when you run it.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050302/dd5aca13/attachment.bin


More information about the freebsd-questions mailing list