At 6:16 PM -0800 2/23/11, Ted Mittelstaedt wrote:
Hi All,
I'm running into a problem with a pretty old freeware perl script called
"readnews" it is in an archive named "readnews-1.85.tar.gz" that is
available here:
http://web.archive.org/web/20080616183736/http://www.scn.org/~bb615/scripts/readnews-1.85.tar.gz
[program fragment snipped]
Everytime I run it I get the immediate error
"Can't connect to XXXX tcp/ip port 119. Error: "
(I removed the name of the actual server system)
Can you connect via telnet?
telnet XXXX 119
Can you ping the server?
ping XXXX
Those will tell you if it is a connectivity problem.
I've tried this on several FreeBSD systems and get the same problem
on all of them.
If it was a firewall thing I would expect the code to hang
then fail, but this just exits immediately, like it can't
create the socket.
It can create the socket, but the socket cannot connect to the server socket.
I know the code is a decade old and probably isn't the
recommended way of doing things nowadays but we want to
upgrade the server and this is what is keeping me from
doing it, and I don't want to really tear into the thing
and use something else.
Any suggestions?
Well I know that it is not what you want to hear, but it is probably
time to rewrite the program using a module that has already been
written and done all of the hard work for you. See the Net::NNTP
module on CPAN or search <http://search.cpan.org> for NNTP for
alternatives.
--
Jim Gibson
j...@gibson.org
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/