Thread View: news.software.readers
2 messages
2 total messages
Started by Doug Fields
Tue, 25 Jun 1991 20:56
Re: automatic posting
Author: Doug Fields
Date: Tue, 25 Jun 1991 20:56
Date: Tue, 25 Jun 1991 20:56
18 lines
1404 bytes
1404 bytes
In article <1991Jun24.151816.2387@ira.uka.de> prechelt@i41s14.ira.uka.de (Lutz Prechelt) writes: :>Where can I get a program that allows to post a ready-made article :>into predetermined newsgroups without ANY user intervention. Write one. Put this line into your crontab: 0 0 * * * /usr/local/lib/news/inews -h </mydir/myfile That'll do the trick. However, that would be very annoying and piss alot of people off on the net. Doug -- Doug Fields -- 100 Midwood Road, Greenwich, CT 06830 --- (FAX) +1 203 661 2996 uucp: uunet!areyes!admiral!doug ------- Thank you areyes/mail and wizkid/news! Internet: fields-doug@cs.yale.edu --------------- (Voice@Home) +1 203 661 2967 BBS: (HST/V32) +1 203 661 1279; (MNP6) -2967; (PEP/V32) -2873; (V32/V42) -0450
Re: automatic posting
Author: Mitchell Wyle
Date: Thu, 27 Jun 1991 12:00
Date: Thu, 27 Jun 1991 12:00
70 lines
2666 bytes
2666 bytes
In <1991Jun25.205607.22585@admiral.uucp>
doug@admiral.uucp (Doug Fields) explains:
>:>Where can I get a program that allows to post a ready-made article
>:>into predetermined newsgroups without ANY user intervention.
>
>Write one. Put this line into your crontab:
>
>0 0 * * * /usr/local/lib/news/inews -h </mydir/myfile
>
>That'll do the trick. However, that would be very annoying and piss alot
>of people off on the net.
As long as the distributions are local, no harm done.
I gateway stuff from local BBS's to local usenet groups
auto-magically. I also do manual (user-level) mailing-list to local
group gatewaying.
A typical script (accepts std in) looks like this:
#!/bin/sh
#
# Undigestify IR-List messages, and post individual articles
# Coder Date Comments
# =========== ======== ===============================================
# M F Wyle 11dec89 IR-List digest articles -> inf.ir
awk 'BEGIN { inart = 0 ; AN = 0 ; Sq = "'"'"'" }
{
if ( $1 == "Fr:" ){
inart=1
AN++
if ( AN > 1 ) {
print ""
print "EOM_END_OF_ARTICLE__"
print "/usr/lib/news/inews -h < /tmp/temp"
print "/bin/rm -f /tmp/temp"
}
s = ""
print " cat > /tmp/temp << " Sq "EOM_END_OF_ARTICLE__" Sq
for (i=2 ; i <= NF ; i++) s = s " " $i ;
print "Reply-To: " s
print "From: wyle@inf.ethz.ch"
print "Newsgroups: inf.ir"
s = ""
getline
for (i=2 ; i <= NF ; i++) s = s " " $i ;
print "Subject: " s
print "Distribution: inf"
print ""
}
if ( inart ) {
if ( $1 == "**********" ) {
inart = 0
} else {
print $0
}
}
}
END {
print "EOM_END_OF_ARTICLE__"
print "/usr/lib/news/inews -h < /tmp/temp"
print "/bin/rm -f /tmp/temp"
}' | /bin/sh
/bin/rm -f /tmp/temp
Another program or script running out of crontab gathers the articles
from their sources.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads