Well, you could install a decent operating system. Windows NT will let you do ICMP pings without having to be root. (: [ Sorry, I get sick of this kind of stupid and useless response when things work the other way. ]

You can use a set-UID Perl script.

You would probably have good luck "pinging" things that you know the destination provides. For example, "ping" port 80 of a webserver by asking for headers using LWP::Simple. "Ping" the telnet or SMTP or FTP port of servers that provide those services.

If you don't have a firewall in the way, you can probably also do TCP "pings" to ports that don't provide a service. A "connection refused" error means that the site is up, heard you, and doesn't offer what you were asking for. Firewalls tend to be configured to remove this helpful stuff in favor of silence. :(

        - tye (but my friends call me "Tye")

In reply to RE: RE: Re: Net::Ping not working by tye
in thread Net::Ping not working by geektron

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.