in reply to Net::Ping Problems

The fact that you can't find the prototype by name, or the service by name suggest that the databases in /etc/protocols and /etc/services have problems. Either they are unreadable (permissions? chrooted environment?), empty, corrupt, or are lacking elementary entries, none of which should happen on a standard Solaris install. The fact they fail is more likely to be an OS issue than a Perl issue (but it could be a Perl issue).

As for the question whether this breaks something, that's hard to say. That all depends on what the code is doing with the values. Since your program seems to be running ok without having the results of the get*byname functions, my question is, is the program using the values?

Abigail

  • Comment on Re: Net::Ping Problems (aka I should have posted it here first instead of the PerlMonks Discussion page!)

Replies are listed 'Best First'.
Re: Re: Net::Ping Problems (aka I should have posted it here first instead of the PerlMonks Discussion page!)
by Paulster2 (Priest) on Oct 22, 2003 at 22:14 UTC

    I have checked the /etc/services and found that the port is activated as it should be. I have not, however checked the /etc/protocols to see if there are any problems. I will also check the perms. Thanks for the suggestions.

    As far as I can tell, the program is running fine as is, and is not using the other functions/values. So, I guess that is a good thing, and I really shouldn't be to worried about it. Thanks again.
    Paul