http://qs1969.pair.com?node_id=586983


in reply to Re^2: perl socket doesn't work anymore
in thread perl socket doesn't work anymore

Hi,

Looks ok for me. On your code replace:
$self->Usage ("Can't start client: $!");
with
$self->Usage ("Can't start client: $@");
And now, when you say it don't work, you mean that, more specificly? The socket is not opening, which error are you getting in $@?

TheMage
Talking Web

Replies are listed 'Best First'.
Re^4: perl socket doesn't work anymore
by Anonymous Monk on Nov 30, 2006 at 16:23 UTC
    ok, this $@ is cool: Program: /var/opt/FirePower/bin/fireclient.pl Version: 2.0.0 Message: Can't start client: IO::Socket::INET: Bad protocol 'tcp' Usage: Why would tcp all of a sudden be a bad protocol?

      Perhaps someone edited /etc/protocols or switched the machine from or to using NIS.

      /J\

        hmmm ... the machine was using NIS and is now using LDAP. Is that the culprit? If so, how do I resolve this? Also, why would removing NIS be the issue oh great one?