From owner-freebsd-questions@FreeBSD.ORG Wed Mar 2 11:02:10 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 C49EA16A4CF for ; Wed, 2 Mar 2005 11:02:10 +0000 (GMT) Received: from hydra.cybertek.co.za (hydra.cybertek.co.za [196.25.191.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A47D43D48 for ; Wed, 2 Mar 2005 11:02:09 +0000 (GMT) (envelope-from jarrod@cybertek.co.za) Received: from overport.cybertek.co.za (mail.cybertek.co.za [196.25.191.15]) by hydra.cybertek.co.za (Postfix) with ESMTP id DE48F4228FF; Wed, 2 Mar 2005 13:01:49 +0200 (SAST) Received: from localhost (localhost [127.0.0.1]) by overport.cybertek.co.za (Postfix) with ESMTP id 1351B1FFC71; Wed, 2 Mar 2005 13:02:03 +0200 (SAST) Received: from overport.cybertek.co.za ([127.0.0.1]) by localhost (overport.cybertek.co.za [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05293-01-88; Wed, 2 Mar 2005 13:01:59 +0200 (SAST) Received: from cyberben (unknown [192.168.2.21]) by overport.cybertek.co.za (Postfix) with ESMTP id E6E2F1FFC6D; Wed, 2 Mar 2005 13:01:59 +0200 (SAST) From: "Jarrod - Cybertek" To: "'Kris Kennaway'" Date: Wed, 2 Mar 2005 13:02:05 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <20050302102921.GA92791@xor.obsecurity.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcUfEsjhrsxg93DXSH2bUUl1nxMuMgABHPUg Message-Id: <20050302110159.E6E2F1FFC6D@overport.cybertek.co.za> X-Virus-Scanned: amavisd-new at cybertek.co.za cc: questions@freebsd.org 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 11:02:10 -0000 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