Thread View: news.software.nntp
4 messages
4 total messages
Started by Eric A. Litman
Thu, 15 Oct 1992 06:16
NNTP via dialup link
Author: Eric A. Litman
Date: Thu, 15 Oct 1992 06:16
Date: Thu, 15 Oct 1992 06:16
61 lines
3312 bytes
3312 bytes
I have been commissioned with setting up a limited newsfeed for a site
with minimal available resources. What I would like to do is allow the
users at the site to open a dialup connection to an internet-connected
machine and emulate a real NNTP connection using perl scripts.
The concept is simple enough. A user will tip/cu (kermit drops carrier
when it is killed) into his/her account on the remote machine, kill
the tip process without dropping carrier, then run the preferred news
reader on the client machine. On this machine, in place of a local NNTP
server will be a perl script, registered in /etc/inetd.conf, which
will first send a command to run a similar script on the remote
machine, then simply copy all input to /dev/ttya (the outgoing serial
device on a NeXT.) The script on the remote machine will open the NNTP
connection to the server and pass back and forth the necessary
commands. Basic copy-in, copy-out procedure.
Assuming the client script is called pnntpd (pseudo-NNTP), the line in
/etc/inetd.conf on the client machine will read:
nntp stream tcp nowait root /usr/local/scripts/pnntpd pnntpd
Here's a simple diagram of what I need:
{newssrv}<-->[ server script ]<-->%phone%<-->[ client script ]<-->{client}
When the news reader opens the connection to the local NNTP server, it
will simply pass all of its data through both scripts to the real,
remote NNTP server. The client newsreader, Tin, will be configured so
that it connects to 'localhost'.
I have something of a dysfunctional client script that is missing the
output command to the server machine to start the nntp session:
# taken from Steve_Hayman@next.com
open(TTYA, "+>/dev/ttya");
if ( fork() ) {
# parent - copy stdin to ttya
while ( <STDIN> ) {
print TTYA;
}
} else {
# child - copy ttya to stdout
while ( <TTYA> ) {
print;
}
}
This seems very straight-forward, but not knowing how to script in
perl I'm at a loss. What I need is a working script for the server
machine, and hopefully a nicer client script as well. Would it be
possible to have the script dial the modem, log into the remote
machine (through a Xylogics Annex box), and start the server script
without any interaction from the user? This would be *ideal*.
I truly appreciate any help you might have to offer. I will gladly
summarize to the group any responses I receive.
--
Eric A. Litman #import <std/disclaimer.h> | NeXTMail, MIME accepted - please
Federal Region, NeXT Campus Consultant | indicate in Subject line.
Re: NNTP via dialup link
Author: Thad Phetteplace x4461
Date: Thu, 15 Oct 1992 13:46
Date: Thu, 15 Oct 1992 13:46
24 lines
1755 bytes
1755 bytes
elitman@nxstep.com (Eric A. Litman) writes: > I have been commissioned with setting up a limited newsfeed for a site > with minimal available resources. What I would like to do is allow the > users at the site to open a dialup connection to an internet-connected > machine and emulate a real NNTP connection using perl scripts. [ context deleted... ] If you have a dial up connection and all you need to run over it is a News feed I would recommend using UUCP. The hooks are already in most news packages and you won't have to jump through a bunch of hoops to make it work. Here at AB we have a Internet connected News server that uses NNTP for its main feed and uses UUCP to feed other sites. It works great and wasn't very tough to set up. -- Thad Phetteplace Network Systems Analyst, Allen-Bradley Co. Phone: (414)382-4461 Email: tdphette@mke.ab.com The opinions expressed here are entirely my own and not that of my employer... I am not a slob, I am simply doing an experiment in domestic entropy!
Re: NNTP via dialup link
Author: Eric A. Litman
Date: Thu, 15 Oct 1992 15:28
Date: Thu, 15 Oct 1992 15:28
24 lines
1908 bytes
1908 bytes
Thad Phetteplace x4461 (tdphette@mke.ab.com) wrote: : elitman@nxstep.com (Eric A. Litman) writes: : > I have been commissioned with setting up a limited newsfeed for a site : > with minimal available resources. What I would like to do is allow the : > users at the site to open a dialup connection to an internet-connected : > machine and emulate a real NNTP connection using perl scripts. : [ context deleted... ] : : If you have a dial up connection and all you need to run over it is a News : feed I would recommend using UUCP. I probably should have been more clear on this - by limited resources I meant that they have little available disk space for the news articles, nor do they have someone on site technically capable of maintaining a functional UUCP feed. I'm not at all averse to using UUCP (I use it myself), it simply does not suit the needs of this project. I appreciate your response, however. -- Eric A. Litman #import <std/disclaimer.h> | NeXTMail, MIME accepted - please Federal Region, NeXT Campus Consultant | indicate in Subject line.
Re: NNTP via dialup link
Author: Edward Vielmetti
Date: Thu, 15 Oct 1992 17:58
Date: Thu, 15 Oct 1992 17:58
25 lines
1862 bytes
1862 bytes
Eric A. Litman (elitman@nxstep.com) wrote: : Thad Phetteplace x4461 (tdphette@mke.ab.com) wrote: : : elitman@nxstep.com (Eric A. Litman) writes: : : > I have been commissioned with setting up a limited newsfeed for a site : : > with minimal available resources. What I would like to do is allow the : : > users at the site to open a dialup connection to an internet-connected : : > machine and emulate a real NNTP connection using perl scripts. : : [ context deleted... ] : : : : If you have a dial up connection and all you need to run over it is a News : : feed I would recommend using UUCP. : : I probably should have been more clear on this - by limited resources : I meant that they have little available disk space for the news : articles, nor do they have someone on site technically capable of : maintaining a functional UUCP feed. I'm not at all averse to using : UUCP (I use it myself), it simply does not suit the needs of this : project. : : I appreciate your response, however. : : -- : Eric A. Litman #import <std/disclaimer.h> | NeXTMail, MIME accepted - please : Federal Region, NeXT Campus Consultant | indicate in Subject line.
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