From owner-freebsd-questions@FreeBSD.ORG Mon Aug 25 10:36:04 2003 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 1804816A4BF for ; Mon, 25 Aug 2003 10:36:04 -0700 (PDT) Received: from out004.verizon.net (out004pub.verizon.net [206.46.170.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EF2743FF5 for ; Mon, 25 Aug 2003 10:36:03 -0700 (PDT) (envelope-from cswiger@mac.com) Received: from mac.com ([68.237.14.199]) by out004.verizon.net (InterMail vM.5.01.05.33 201-253-122-126-133-20030313) with ESMTP id <20030825173602.JMFV25700.out004.verizon.net@mac.com> for ; Mon, 25 Aug 2003 12:36:02 -0500 Message-ID: <3F4A48FA.2060108@mac.com> Date: Mon, 25 Aug 2003 13:35:54 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org References: <20030825163744.GA61150@keyslapper.org> In-Reply-To: <20030825163744.GA61150@keyslapper.org> X-Enigmail-Version: 0.76.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at out004.verizon.net from [68.237.14.199] at Mon, 25 Aug 2003 12:36:02 -0500 Subject: Re: motd question 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: Mon, 25 Aug 2003 17:36:04 -0000 Louis LeBlanc wrote: > Probably not possible, but I was wondering (and have for some time, > though I can't find any info on it either way) whether /etc/motd is > strictly a text in/text out file, or if there is a way to get it to > execute a command, the output of which is to be included in the text > output? /etc/motd is a text file, and is displayed due to the following section /etc/login.conf: default:\ :passwd_format=md5:\ :copyright=/etc/COPYRIGHT:\ :welcome=/etc/motd:\ FYI, most other flavors of Unix have a "cat /etc/motd" in the default shell init files. Anyway, if you want to dynamicly generate motd, you could invoke your program via cron or simply put something in /etc/profile which will display whatever it is you want to see (if for all users), or in ~/.profile [ ~/.login, ~/.zlogin, etc].... -- -Chuck