Oh Estimable Monks, please shine favor on a lowly accolyte,
I am trying to use Net::Ping in the simplest possible way and the utility doesn't "see" a local system on the LAN that I can manually ping. I am using the ActiveState 5.6 on Windows NT 4.0 SP 6a and I'm pinging a Redhat Linux 6.2 system.
Here is the code: use Net::Ping; $push_ip_address="192.168.0.27"; print "$push_ip_address\n"; #just for grins $p = Net::Ping->new(); print "OK \n" if $p->ping("$push_ip_address",2); print "Pval $p\n"; #just to see print "Nuts!! \n" unless $p->ping($push_ip_address,2); $p->close(); Here is the result: D:\test>perl testftp.pl 192.168.0.27 Pval Net::Ping=HASH(0x1b9f08c) Nuts!! done So it doesn't appear to see the system. Yet, wise ones... D:\test>ping 192.168.0.27 Pinging 192.168.0.27 with 32 bytes of data: Reply from 192.168.0.27: bytes=32 time<10ms TTL=255 Reply from 192.168.0.27: bytes=32 time=10ms TTL=255
My fingers can see the node... woe is me.
Would you please advise as to my shortcomings?
Many that they are.
Diskcrash
In reply to Perfectly Poor Ping Problem by diskcrash
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |