Article View: news.software.nntp
Article #2999UseNet/Gopher Perl Script (gonnrp)
From: Chris Hardy
Date: Mon, 31 Oct 1994 17:39
Date: Mon, 31 Oct 1994 17:39
58 lines
3252 bytes
3252 bytes
Hello I am working on makeing UseNet Available to the college I
work at through the gopher server, I found gonnrp, and I have been trying
to install it, (This is a linux machine), It runs fine when I do am
testing it without useing /sbin/chroot (Which gopher uses). I do know a
spattering of Perl (Teaching myself right now) and when my .h librairies
didn't copy over all the way I could fix it, but now, whenever I try to run
it, It gives me a error:
connect: Connection refused at line 96
Which is the area where the connect(NNTPSOCK,$rsockaddr) || die 'connect'
is ... I've got most of the perl libraries, perl, and /dev's in the
chroot'd directory, but still no luck, could you please help?
******************************************************************************
This is a copy of the part of the code that dies...
$sockaddr = 'S n a4 x8';
($name, $aliases, $proto) = getprotobyname('tcp');
($name, $aliases, $nntpport) = getservbyname($nntpprt, 'tcp');
($name, $aliases, $type, $len, $nntpaddr) = gethostbyname($nntphost);
$rsockaddr = pack($sockaddr, &AF_INET, $nntpport, $nntpaddr);
socket(NNTPSOCK, &PF_INET, &SOCK_STREAM, $proto) || die "socket: $!";
connect(NNTPSOCK, $rsockaddr) || die "connect: $!";
select(NNTPSOCK); $|= 1; select(stdout);
$_ = <NNTPSOCK>;
print NNTPSOCK "MODE READER$nntpeol";
$_ = <NNTPSOCK>;
********************************************************************************
Thanks,
Chris Hardy
BTW If anyone would like to see the script e-mail me and I'll show you.
==========================================================================|
|Christofer Hardy |"Great spirits have always encountered |
| System Administrator | violent opposition from mediocre minds"|
| Jackalope & Bassalope | -Albert Einstein |
| (Animals Mother Nature never |==========================================
| intended.) |chardy@jackalope.lcc.whecn.edu |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
alternate e-mails: lcchardy@antelope.wcc.edu or chardy@mail.lcc.whecn.edu
Contact me about LCCC's Web page, or gopher server. Check out the Web server
at http://jackalope.lcc.whecn.edu, or
http://jackalope.lcc.whecn.edu/home/chardy/home.html
Technical Details
Message-ID:
<393a3o$4v8@jackalope.lcc.whecn.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.infosystems.gopher.mbox.zip!bga.com!news.sprintlink.net!hookup!news.kei.com!world!news.mtholyoke.edu!nntp.et.byu.edu!jackalope.lcc.whecn.edu!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <393a3o$4v8@jackalope.lcc.whecn.edu> Subject: UseNet/Gopher Perl Script (gonnrp) Date: Mon, 31 Oct 1994 17:39:04 +0000 From: chardy@jackalope.lcc.whecn.edu (Chris Hardy) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.infosystems.gopher.mbox.zip!bga.com!news.sprintlink.net!hookup!news.kei.com!world!news.mtholyoke.edu!nntp.et.byu.edu!jackalope.lcc.whecn.edu!not-for-mail Newsgroups: comp.infosystems.gopher,news.software.nntp,comp.os.linux.admin,comp.os.linux.development,comp.os.linux.admin,comp.lang.perl Organization: Laramie County Community College, Cheyenne Lines: 57 Distribution: inet NNTP-Posting-Host: jackalope.lcc.whecn.edu Keywords: gonnrp linux UseNet gopher