home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!comp.vuw.ac.nz!zl2tnm!toyunix!don
- Newsgroups: comp.os.vms
- Subject: Re: comp.os.vms.flame, never ending story...
- Message-ID: <8949365@zl2tnm.gen.nz>
- From: don@zl2tnm.gen.nz (Don Stokes)
- Date: 31 Dec 92 16:30:31 GMT
- Sender: news@zl2tnm.gen.nz (GNEWS Version 2.0 news poster.)
- References: <00965DB1.3FA57140.6066@tchden.org>
- Distribution: world
- Organization: The Wolery
- Lines: 60
-
- lbmoore@tchden.org ("Louis B. Moore") writes:
- > Nobody pointed out that Carl had politely responded to requests for help
- > from Egypt before, again politely, suggesting an interpreter. Carl's flames
- > have been much flamed, but Carl's patience has been ignored.
-
- I can't help but notice that far more traffic has been generated lately
- on flames about flames than on stupid posts, flames to stupid posts,
- or actual useful postings. <sigh>
-
- > With thanks to Ehud for the concept, what follows is some actual
- > technical content:
-
- I like this idea. How about someone setting up an automatic (email!)
- flame-launcher for anyone not adding an obtech to flames? 8-)
-
- > .Title RANDOM_INT
-
- Cute, but I do these things in DCL.... 8-)
-
- $ ver = 'f$verify(0)'
- $!==============================================================================
- $! COOKIE.COM - Fortune cookie
- $!==============================================================================
- $ cookiefile = f$parse(".DAT;", f$environment("PROCEDURE"))
- $ if p1 .eqs. "ADD" then goto add_a_cookie
- $ open/read/share in 'cookiefile'
- $ read in record
- $ howmuch = f$integer(f$extract(4, 4, record))
- $ rnd = f$integer(f$cvtime(,, "TIME") - ":"-":"-".")
- $ key = f$fao("!4UL", rnd - (rnd / howmuch * howmuch) + 1)
- $ read in record/key=&key
- $ write SYS$OUTPUT f$extract(4, 255, record)
- $ close in
- $ exit 1+0*f$verify(ver)
- $!
- $ add_a_cookie:
- $ text = p2
- $ if text .eqs. "" then read SYS$COMMAND text/error=abort/prompt="Texti: "
- $ if text .eqs. "" then exit
- $ open/read/write/share in 'cookiefile'
- $ read in record
- $ howmuch = f$integer(f$extract(4, 4, record))
- $ howmuch = howmuch + 1
- $ record = f$fao("!4UL!AS", howmuch, text)
- $ write in record
- $ read/key=" 0" in record
- $ write/update in f$fao(" 0!UL", howmuch)
- $ close in
- $ abort:
- $ exit 1+0*f$verify(ver)
- $!------------------------------------------------------------------------------
-
- (COOKIE.DAT is an indexed file with a four character key, which is an right
- justified decimal number. The " 0" record contains the highest record
- number. The rest of the record is the "fortune cookie".)
-
- --
- Don Stokes, ZL2TNM (DS555) don@zl2tnm.gen.nz (home)
- Network Manager, Computing Services Centre don@vuw.ac.nz (work)
- Victoria University of Wellington, New Zealand +64-4-495-5052
-