Article View: news.software.nntp
Article #49994Re: autopost
From: Bjorn
Date: Fri, 19 Jan 2001 15:49
Date: Fri, 19 Jan 2001 15:49
61 lines
2920 bytes
2920 bytes
You were right, it was faster to write one myself. =)
su-2.04$ ./newspost.pl
usage: ./newspost.pl -n [newsserver] -e [email] -s [subject] -g
[grouplist] -f [file]
-n Newsserver The server that you should post to.
-e email The email adress you will post from
-s subject The subject.
-g newsgroup a list of groups seperated with a ","
(do not use spaces)
-f file The message to be posted. (Fullpath if
in crontab)
su-2.04$
It can be run in crontab without problem. Ill have to do some checks and
stuff, its really hardcore right now. Maybe if im happy about the code I
add it on a page.
/Bjorn
Klaas wrote:
>
> Bjorn <bjorn@behindthedecks.com> wrote in message
> news:3A65A737.CCCB2F47@behindthedecks.com...
> >
> > Hi
> >
> > I meant a more common util, like a simple post to a server.
> > something like
> >
> > #post.pl -h nntpserver -g my.group -e my@email < mymessage
> >
> > inews seems only to post to localhost and inn. the software
> > that are running is typhoon.
>
> Honestly, it would probably take you less time to write something that
> simple than to look for it.
>
> Just
> -open a socket to news-server, port 119
> -send "post\r\n"
> -send From, Subject, and Newsgroups headers
> -send blank line, followed by the body of the text.
> -send ".\r\n"
> -send "quit"
>
> Adding some error checking might be a good idea.
>
> -Mike
--
"computer games don't affect kids, I mean if pac man affected us as
kids, we'd
all sit around in a darkened room munching pills and listening to
repetitive
music."...
Technical Details
Message-ID:
<3A68620A.980F5AF0@behindthedecks.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!news.belnet.be!skynet.be!newsfeed1.uni2.dk!uio.no!uninett.no!news.ost.eltele.no!newsfeed1.enitel.no!masternews.telia.net!newsb.telia.net.POSTED!not-for-mailReferences:
<3A65452B.EB2B08DC@behindthedecks.com> <943oc8$ros$3@support.neth.hp.com> <3A65A737.CCCB2F47@behindthedecks.com> <945ut0$cc921$1@ID-26705.news.dfncis.de>Show Full Headers
Complete Article Headers
Message-ID: <3A68620A.980F5AF0@behindthedecks.com> Subject: Re: autopost Date: Fri, 19 Jan 2001 15:49:30 GMT From: Bjorn <bjorn@behindthedecks.com> References: <3A65452B.EB2B08DC@behindthedecks.com> <943oc8$ros$3@support.neth.hp.com> <3A65A737.CCCB2F47@behindthedecks.com> <945ut0$cc921$1@ID-26705.news.dfncis.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!news.belnet.be!skynet.be!newsfeed1.uni2.dk!uio.no!uninett.no!news.ost.eltele.no!newsfeed1.enitel.no!masternews.telia.net!newsb.telia.net.POSTED!not-for-mail X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 4.2-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: news.software.nntp Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 60 NNTP-Posting-Host: 194.237.170.70 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 979919370 194.237.170.70 (Fri, 19 Jan 2001 16:49:30 CET) NNTP-Posting-Date: Fri, 19 Jan 2001 16:49:30 CET Organization: Telia Internet