From owner-freebsd-questions@FreeBSD.ORG Wed Mar 2 10:42:40 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 A315916A4CE for ; Wed, 2 Mar 2005 10:42:40 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FBDA43D48 for ; Wed, 2 Mar 2005 10:42:40 +0000 (GMT) (envelope-from pietro.cerutti@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so100722rng for ; Wed, 02 Mar 2005 02:42:37 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=W8VW/qrgM6KgQINGNBW2B1Ym1RPOtYloyKqExIkScz0dGa5tJnrDmmMUb8eOvFAT3fIIUhJ90VBW4meLHX3x3g5eUmcbZBh/hFF/rSCEHvtc1dt14JL5S0vETI2SAnx8FiY4ANLIEK5KIiZmJXNGQuK/W4GEpHG5z53yu7o7dBI= Received: by 10.38.153.45 with SMTP id a45mr30176rne; Wed, 02 Mar 2005 02:42:36 -0800 (PST) Received: by 10.38.13.13 with HTTP; Wed, 2 Mar 2005 02:42:36 -0800 (PST) Message-ID: Date: Wed, 2 Mar 2005 10:42:36 +0000 From: Pietro Cerutti To: FreeBSD In-Reply-To: <20050302102921.GA92791@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20050302075746.GA60502@xor.obsecurity.org> <20050302094308.007AE1FFC6C@overport.cybertek.co.za> <20050302102921.GA92791@xor.obsecurity.org> Subject: Re: referencing in files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Pietro Cerutti List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2005 10:42:40 -0000 Hi Jarrod, what I think you could do is to make a script to automatize the whole procedure. This script would update both the "text file" and the /etc/motd. Since /etc/motd is a plain text file and not a shell script or something like that, you cannot do what you will with a command directly in it. On Wed, 2 Mar 2005 02:29:21 -0800, Kris Kennaway wrote: > 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 > > -- Pietro "Piter" Cerutti Beansidhe - SwiSS Death / Thrash Metal Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming or what?"