by Anon on June 7th, 2006

Anon

Question

Help answer this question below.

How can I ping IP addresses using PERL?

Answers. Showing one answer.

  • 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...

    Comments

    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.

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

Follow us on Facebook!

Related Ads