From owner-freebsd-questions@FreeBSD.ORG Thu Oct 30 15:41:38 2008 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 838F1106567C for ; Thu, 30 Oct 2008 15:41:38 +0000 (UTC) (envelope-from mdh_lists@yahoo.com) Received: from web56801.mail.re3.yahoo.com (web56801.mail.re3.yahoo.com [66.196.97.75]) by mx1.freebsd.org (Postfix) with SMTP id 2E38A8FC1D for ; Thu, 30 Oct 2008 15:41:38 +0000 (UTC) (envelope-from mdh_lists@yahoo.com) Received: (qmail 32593 invoked by uid 60001); 30 Oct 2008 15:41:37 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=DSwgaXy7oPfaJXFMa5Jh8A0pdaHYwKKB2PQn9/I+d7KT91hejgM4zwf9H8PmuMm5E4B6yKLC9vOGAlPzWUh0pWT9lDp4acbfOrIDkxQmFfx6dAe9pJHuD4Dp+SaHeojIXv6+NoKg8E2uCap4fkTy7owtuYHLqbJJC84Bj9ExAmc=; X-YMail-OSG: p5haLXAVM1lW2_RU_DQPSFLoKab6TqF0sMVwTUSY19aXouFWA5PT.HIssek.6lgXAsOmsShJBa0Lzr3.L7yCZXIxBft9xHY_tj5iR.5A4uHmYTWBiIETumHYKOcS8JWSPSfaNCNn3TsuaJqF3HqD0hcwnGOnXiwZB0ZFrbSc7RJBH5zhSzMPbPQdpoCFyQ-- Received: from [71.61.220.126] by web56801.mail.re3.yahoo.com via HTTP; Thu, 30 Oct 2008 08:41:37 PDT X-Mailer: YahooMailWebService/0.7.247.3 Date: Thu, 30 Oct 2008 08:41:37 -0700 (PDT) From: mdh To: freebsd-questions@FreeBSD.org, Zhang Weiwu In-Reply-To: <4909C8E7.60904@realss.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <400091.32582.qm@web56801.mail.re3.yahoo.com> Cc: Subject: Re: improvement idea of man page of strfile X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mdh_lists@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2008 15:41:38 -0000 --- On Thu, 10/30/08, Zhang Weiwu wrote: > From: Zhang Weiwu > Subject: improvement idea of man page of strfile > To: freebsd-questions@FreeBSD.org > Date: Thursday, October 30, 2008, 10:47 AM > Original text: > > OTHER USES > > What can you do with this besides printing sarcastic > and obscene mes- > sages to the screens of lusers at login or logout? > > There are some other possibilities. > > 1 Include strfile.h into a news reading/posting > program, to gener- > ate random signatures. Tin(1) does something > similar, in a much > more complex manner. > > 2 Include it in a game. While strfile > doesn't support 'fields' or > 'records', there's no reason that > the text strings can't be con- > sistent: first line, a die roll; second line, > a score; third and > subsequent lines, a text message. > > 3 Use it to store your address book. Hell, > some of the guys I > know would be as well off using it to decide > who to call on Fri- > day nights (and for some, it wouldn't > matter whether there were > phone numbers in it or not). > > 4 Use it in 'lottery' situations. If > you're an ISP, write a > script to store login names and GECOS from > /etc/passwd in str- > file format, write another to send > 'congratulations, you've won' > to the lucky login selected. The prize might > be a month's free > service, or if you're AOL, a month free > on a real service > provider. Erm, I don't see this text in strfile(8) on RELENG_7 which is reasonably recent. Where did you get your man page from? - mdh