People,
I am trying to use an intranet Linux box as an aid to networking folks.
OK, I'm also trying to show off Linux.
Anyway, I have a Perl script, using Net::Ping, etc., and it doesn't seem
to be working. I am not a PERL guru, obviously.
  my $rtn = $pg->ping(\$sname);
returns zero.

  my $saddr = gethostbyname($sname);
  printf "\n%s: 0x%X\n", $sname, $saddr;
  if ($saddr == 0) {
    print "address is zero\n";
  }
  else {
    printf "Actual address is:$i\n", $saddr;
  };

says the address is zero.
In bash, ping works fine.
What am I missing? What does Perl need that ping doesn't?
Do they use different services to get the info?
Bob Sparks


**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to