RE: [ILUG] Slashdot New Story Notifier ;)

From: McDaid, Aaron (Aaron.McDaid at domain compaq.com)
Date: Wed 03 May 2000 - 17:30:46 IST


> > Thought some of you might like this:
> > Should I GPL it ;) Maybe I could generalize it
> > to check a few others sites (including kuro5hin.org,
> > segfault.org etc.)

In all seriousness maybe I should tidy it up, get it
working with multiple (configurable) sites and try
to get it on freshmeat!
Does anyone want me to get it to send them an email
when there's a new story, if I wasn't behind a firewall
I could possibly have used smbclient to get that
notification to pop up on your Windows machines.

> Robert Elliott said:
> Cool. Can you set it up so that it autoresponds with a f1rst
> p0st message?
> Something along the lines of if (randomnumber < 5) {
> hotgrits=1; }; would
> do nicely.

I had thought of that but the "number of posts to one
story" record is already held by a bash script:
http://slashdot.org/books/00/02/15/1024231.shtml
It used fortune cookies IIRC.
So messing with /. like that is already done (and
damn silly too, I'm a hacker in the Jargon File definition
of the word www.tuxedo.org/~esr/ , not a 1337 h4x0r)!!!

but if you insist :-/

sub firstpost {
   at domain comments=("hotgrits","natalie portman","phurst quantum post, dudez!");
  $whattosay=$comments[randomnumber];
  httpget("www.slashdot.org/postcomment.pl?comment=$whattosay");
}



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:00 GMT