home *** CD-ROM | disk | FTP | other *** search
- The ARexx Cookie Monster Programs
-
- "What's in the archive, Rick?"
-
- There are four files in there:
-
- ReadMe.txt You're reading it now
- Cookie.bt The ARexx program for BackTalk
- Cookie.rexx A similar program for general ARexx use
- Cookie.dat The cookie database
-
-
- "Ok, what does it do?"
-
- The file "Cookie.dat" is an ASCII file which is the database for
- both of the ARexx programs included in this archive.
-
- The file "Cookie.bt" is an ARexx program for use with terminal program
- BackTalk by Steve Ahlstrom and Don Curtis. The program uses BackTalk's
- "ONSTRING" ARexx command to watch the incoming serial line. When
- BackTalk sees the string "saycookie", it notifies Cookie.bt which
- then randomly picks a profound saying from the database file and spits
- it back to BackTalk which sends it out the serial port.
-
- The other program, Cookie.rexx does a similar thing when invoked. To
- use it, just type "rx cookie" at a CLI or Shell prompt. It'll respond
- with a randomly selected pithy saying that will hopefully make you
- smile a little.
-
-
- "Sounds great! How do I install it, Rick?"
-
- Once you've successfully de-LHARCed this thing (obviously you have,
- since you're reading this), you have to do a couple of things to make
- it all work.
-
- 1. First, copy the file "Cookie.dat" to your S: directory. This is
- the Fortune Cookie database.
-
- 2. Copy the "Cookie.bt" file into your REXX: directory. This is the
- ARexx program that BackTalk uses to grab a random cookie and send
- it out the serial port. Use your favorite text editor and modify
- the lines which say
-
- send "/nam Rickly"
-
- and replace the "Rickly" with the handle you use in CompuServe's CO
- areas. The reason for this is that when Cookie.bt pops out it's
- message, it first changes your handle to "Cookie Monster", then it
- sends the cookie and finally changes the handle back to whatever is
- in these lines.
-
- 3. Copy the "Cookie.rexx" file to your REXX: directory. This is the
- ARexx program that's run when you type "rx cookie".
-
-
- You'll notice that I've commented the programs pretty heavily. "Gads!
- A programmer who documents? Will wonders never cease?" <heheheh!>
- I do that because six months from now, I won't remember why I did
- things. Besides, it makes it easier for you to change the programs
- if you want to.
-
-
- "Can I add more sayings when I come across them?"
-
- Sure you can! The Cookie.dat file is a standard ASCII text file. It is
- arranged alphabetically by the first few words of the saying, but you
- don't have to keep it that way. Just use an editor, add a saying into
- the file. Add a form feed character (0C hexadecimal, or control-L) after
- the saying to separate it from the others (both of the ARexx programs
- think anything between two form feed characters make up a cookie).
-
-
- "How about legalities, Rick?"
-
- Ok, ok. Here it is:
-
- The files "Cookie.bt", "Cookie.rexx", and "Cookie.dat" are released
- to the public domain by the author, Richard P. Stevens, II. You may
- use them any way you see fit!
-
- Easy, no? Just consider these my contribution to the better humor of
- the world at large. (It'll probably tick off the lawyers out there.
- There's not much they can argue about in it, and you know how they LOVE
- to argue! <grin!>)
-
-
- "If I get confused, how do I get in touch with you?"
-
- Several ways. The best is probably to send me electronic mail.
- Here are some addresses to use:
-
- CompuServe: 75006,1355 (75006.1355@compuserve.com)
- Internet: rick@tmi.com -or- sysop@ssssc.com
- UUCP: ...uunet!zardoz!tmiuv0!rick
- ...uunet!zardoz!xyclone!sysop
-
- I hang out on CompuServe's AmigaTech forum a lot, starting at about
- 10:00 p.m. Pacific time. If I'm in CO, look for a guy named "Rickly".
-
- Enjoy!
-
- Rick Stevens
- 29 July 1991
-