🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #3006

Re: UseNet/Gopher Perl Script (gonnrp)

#3006
From: R. Stewart Ellis
Date: Thu, 03 Nov 1994 13:05
76 lines
4033 bytes
chardy@jackalope.lcc.whecn.edu (Chris Hardy) writes:

 >	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:

Not clear what you are saying, but this sounds like you mean the h2ph of
some of your .h files failed.

 >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: $!";

I strongly suspect you do not have a socket.ph file in /usr/local/lib/perl
or wherever you have your perl lib stuff config'ed for.

 >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

Posted and mailed.


-- 
  R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765   ___________________
  Humanities & Social Science,  GMI Eng.& Mgmt. Inst.    /   _____  ______ 
  Flint, MI 48504      ellis@nova.gmi.edu               /        / /  /  / /
  Gopher,chimera,nn,tin,jove,modems, free code is best!/________/ /  /  / /
Technical Details
Message-ID: <ellis.783867956@gmi.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!howland.reston.ans.net!gatech!newsxfer.itd.umich.edu!zip.eecs.umich.edu!gmi.edu!ellis
References: <393a3o$4v8@jackalope.lcc.whecn.edu>

Show Full Headers
Complete Article Headers
Message-ID: <ellis.783867956@gmi.edu>
Subject: Re: UseNet/Gopher Perl Script (gonnrp)
Date: Thu, 03 Nov 1994 13:05:56 +0000
From: ellis@nova.gmi.edu (R. Stewart Ellis)
References: <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!howland.reston.ans.net!gatech!newsxfer.itd.umich.edu!zip.eecs.umich.edu!gmi.edu!ellis
Newsgroups: comp.infosystems.gopher,news.software.nntp,comp.os.linux.admin,comp.os.linux.development,comp.os.linux.admin,comp.lang.perl
Organization: GMI Engineering&Management Institute, Flint, MI
Lines: 75
Distribution: inet
NNTP-Posting-Host: nova.gmi.edu
Keywords: gonnrp linux UseNet gopher
X-Newsreader: NN version 6.5b3.0 #4 (NOV)