From owner-freebsd-questions@FreeBSD.ORG Fri May 30 20:02:54 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 09C3C37B401 for ; Fri, 30 May 2003 20:02:54 -0700 (PDT) Received: from msr62.hinet.net (msr62.hinet.net [168.95.4.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id D382043F93 for ; Fri, 30 May 2003 20:02:52 -0700 (PDT) (envelope-from y2kbug@ms25.hinet.net) Received: from sonic.utopia.com (61-227-219-120.HINET-IP.hinet.net [61.227.219.120]) by msr62.hinet.net (8.9.3/8.9.3) with SMTP id LAA24461 for ; Sat, 31 May 2003 11:02:47 +0800 (CST) Date: Sat, 31 May 2003 10:40:25 +0800 From: Robert Storey To: freebsd-questions@freebsd.org Message-Id: <20030531104025.3a5b5729.y2kbug@ms25.hinet.net> In-Reply-To: <044301c326ea$2bf783b0$7419cdcd@ticking> References: <20030530202516.56184.qmail@web40611.mail.yahoo.com> <044301c326ea$2bf783b0$7419cdcd@ticking> X-Mailer: Sylpheed version 0.8.11 (GTK+ 1.2.10; i386-debian-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: rotating motd 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: Sat, 31 May 2003 03:02:54 -0000 > A trivial question, but a question nonetheless! My FreeBSD /etc/motd is > a static and rather boring file. I recall that when I used to login to > my Slackware machine, it spruced things up a bit by offering some sort > of rotating motd, which would spit out a random quote or joke instead of > the same ol' static message. Is there a way to simulate this in > FreeBSD? Unfortunately, 'man motd' does little more than state the > obvious, and describe a method by which to surpress the motd altogether. > This, of course, occurs to me as I ssh into my home machine from work! > Thanks, > ~John As Adam pointed out, "fortune" is what you want. I assume it's available for FBSD (can't check right now as I'm at a Linux box). I don't think you can run fortune from /etc/motd file. Install the one word command "fortune" in the run command file for whatever shell you are using. Since I use bash, that's file .bashrc. This will cause fortune to give you a message every time you log in, including every time you open an Xterm. It might drive you crazy after awhile. regards, Robert