by Anon on June 7th, 2006

Anon

Question

Help answer this question below.

How can I ping IP addresses using PERL?

Answers. 1 helpful answer below.

  • by KCTrey on June 8th, 2006

    KCTrey

    There are a couple of ways to do this.

    The simplest would just be to do a ping in an exec, like:

    @results = `ping host.com`;

    If you want to get really robust, use the Net::Ping module, available from CPAN.

    Check it out here: http://search.cpan.org/~bbb/Net-Ping-2.31/lib/Net/Ping.pm

    Hope this helps...

    No comments. Post one | Permalink

Want to attach an image to your answer? Click here.

Did this answer your question? If not, then ask a new question or create a poll.

More Questions. Additional questions in this category.

You're reading How can I ping IP addresses using PERL?

Follow us on Facebook!

Related Ads

ANSWERBAG BUZZ

Perl ping
Script perl ping to ip
Perl ping ip address
Using ping in perl
Perl get ping answer