develooper Front page | perl.beginners | Postings from February 2002

No access to /etc/protocols

Thread Next
Paul Murphy
February 27, 2002 02:48
No access to /etc/protocols
Message ID:

Hello everyone.

My ISP doesn't have /etc/protocols world readable, and so IO::Socket doesn't 
work, as getprotobyname and getprotobynumber fail.

I am using the Mail::POP3Client wrapper.

I am trying to come up with a workaround, and the best I can come up with is 
a horrendous hack to IO::Socket::INET so that it knows that tcp is protocol 
6 and vice versa.

My ideal would be to store a local copy of /etc/protocols for Perl, and 
somehow fool it into resolving there rather then the real one.

Does anyone have any tips?  I can't modify anything too fundamental with 
Perl, as I am running their binary.


Get your FREE download of MSN Explorer at

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About