Date: Thu, 30 Oct 2008 08:41:37 -0700 (PDT) From: mdh <mdh_lists@yahoo.com> To: freebsd-questions@FreeBSD.org, Zhang Weiwu <zhangweiwu@realss.com> Subject: Re: improvement idea of man page of strfile Message-ID: <400091.32582.qm@web56801.mail.re3.yahoo.com> In-Reply-To: <4909C8E7.60904@realss.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--- On Thu, 10/30/08, Zhang Weiwu <zhangweiwu@realss.com> wrote: > From: Zhang Weiwu <zhangweiwu@realss.com> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?400091.32582.qm>