Thread View: news.software.nntp
2 messages
2 total messages
Started by Chris Hardy
Mon, 31 Oct 1994 17:39
UseNet/Gopher Perl Script (gonnrp)
Author: 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
Re: UseNet/Gopher Perl Script (gonnrp)
Author: R. Stewart Ellis
Date: Thu, 03 Nov 1994 13:05
Date: Thu, 03 Nov 1994 13:05
76 lines
4033 bytes
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!/________/ / / / /
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