inews {aka, HHHEEEEELLLLLLLPPPPPP!!!}

Brian Matthews blm at cxsea.UUCP
Tue Sep 9 05:18:42 AEST 1986


In article <209 at wolf.UUCP> billw at wolf.UUCP (Bill Wisner) writes:
|I am trying to write a shell script that will use inews to automatically
|post a message to a local newsgroup (let's call it foo.test) once a month.
|The shell script will run a program, and put the results into an article
|using inews. There is one slight problem; inews chokes on the idea. Throwing
|me memory faults. I have been trying..
|
|inews -t 'This is the Subject' -n 'foo.test' -e 'Sun Jan 11 13:13:13 PDT 1986' -d 'local' -o 'Generic Witticism'
|
|and piping the standard input from the program who's results I want to post.

I have a number of articles I post automatically at various times. The
article I post has the complete header, so I just do an inews -h <file,
where file is something like:

Newsgroups: foo.test
Subject: This is the Subject
Reply-To: me at here (Here's default system administrator)
Distribution: local
Organization: My organization

Article...


This works nicely, and keeps all of the article information in one place if
I want to modify the article or the header in some way. By the way, I'm
running news 2.10.2.

-- 

Brian L. Matthews
Computer X Inc. - a division of Motorola New Enterprises
..{utcsri!utzoo!mnetor, uw-beaver!ssc-vax}!cxsea!blm
+1 206 251 6811



More information about the Comp.unix mailing list