How to write a ping client

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Harlin

    #1

    How to write a ping client

    Is there a way to write a ping client? I would like to be able to write
    a small ping client so that I dont have to do os.system('ping args')
    and thereby keep the resource overhead low. Does anyone know how this
    can be done or can point me in the right direction?

    thanks,

    Harlin

  • Grant Edwards

    #2
    Re: How to write a ping client

    On 2005-02-22, Harlin <harlinseritt@y ahoo.com> wrote:
    [color=blue]
    > Is there a way to write a ping client?[/color]
    [...]



    --
    Grant Edwards grante Yow! I have the power
    at to HALT PRODUCTION on all
    visi.com TEENAGE SEX COMEDIES!!

    Comment

    • Harlin

      #3
      Re: How to write a ping client

      whoa... this is not in the standard library, is it? I never knew this
      was out there. Thanks!

      Please use your powers for good (the one about halting production on
      teenage sex comedies :)

      Comment

      • Peter Hansen

        #4
        Re: How to write a ping client

        Harlin wrote:[color=blue]
        > whoa... this is not in the standard library, is it? I never knew this
        > was out there. Thanks![/color]

        You mean, Google?

        Comment

        • Martin Bless

          #5
          Re: How to write a ping client

          On 21 Feb 2005 18:35:06 -0800, "Harlin" <harlinseritt@y ahoo.com>
          wrote:
          [color=blue]
          >Is there a way to write a ping client? I would like to be able to write
          >a small ping client so that I dont have to do os.system('ping args')[/color]

          I once followed the same line and used a py module by Jeremy Hylton if
          I remember correctly.

          But only to find that on the Linux machine I wasn't allowed as non
          root to ping from my script. So I went back to the os.system() call.

          mb - Martin

          Comment

          • Harlin Seritt

            #6
            Re: How to write a ping client

            ?

            Comment

            • Nick Vargish

              #7
              Re: How to write a ping client

              "Harlin Seritt" <harlinseritt@y ahoo.com> writes:
              [color=blue]
              > ?[/color]

              #!/bin/sh
              ping $1


              Enjoy,

              Nick

              --
              # sigmask || 0.2 || 20030107 || public domain || feed this to a python
              print reduce(lambda x,y:x+chr(ord(y )-1),' Ojdl!Wbshjti!=o bwAcboefstobudi/psh?')

              Comment

              Working...