home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / ping-w4.zip / ping.txt < prev    next >
Text File  |  1997-03-01  |  2KB  |  59 lines

  1. -------------------------------------------------------------
  2. This product includes software developed by the University of
  3. California, Berkeley and its contributors.
  4. -------------------------------------------------------------
  5.  
  6. What is it?
  7. -----------
  8. This is the FreeBSD ping compiled for OS/2.  There was another compilation
  9. of this program but it did not appear to work with Warp v4 / TCP/IP v4.  This
  10. one seems to work without problem.  (Note: "work" == "works for me")
  11.  
  12. John Smyth (xy3@usa.net)
  13.  
  14. -----------
  15.  
  16. Why bother?  I (and many others, it seems) like the -i <#> option, allowing
  17. for a ping interval.  Many ISPs like to hang up when there is a loss of
  18. activity for a # of minutes on the line.  Using this allows a ping every #
  19. seconds (500, for example) thus keeping the connection active.
  20.  
  21. ping -i 500 ibm.com
  22.  
  23. Hints
  24. -----
  25. I don't advise replacing the OS/2 ping.exe program with this one, although you
  26. can if you want.  Some applications (WBI, for example) seem to rely on the
  27. OS/2 ping and its syntax during installation.  I have renamed mine to
  28. 'uping.exe' and put it in my path.
  29.  
  30. Changes
  31. -------
  32. This is simply the first FreeBSD ping.c I could find on the net, and
  33. recompiled for OS/2 with EMX 09c. It isn't optimized in any way since the
  34. following is returned when optimized, and I don't have the patience to figure
  35. it out. :)
  36.  
  37. \emx\lib\sigbsd.obj(sigbsd.obj) :  error L2029: '_uflags' : unresolved external
  38.  
  39. I made 2 small changes for my own use.  I'm only releasing this since no one
  40. else seems to want to.
  41.  
  42.    - Return codes (error levels) are based on the % of pings that fail to
  43.      be returned.
  44.      - return code 0 means no pings failed, and the connection is good
  45.      - 0 < return code < 100 means that the connection is 'iffy'
  46.      - return code 100 means all pings failed, and connection can't be made
  47.    - -h was added to hide the header, making a cleaner view in rexx scripts
  48.      that want to ping and handle return codes, but not display any of the
  49.      ping program.
  50.  
  51.  
  52. Example REXX Script
  53. -------------------
  54. If you have friends/colleagues with static IP addresses, and want to know if
  55. they are connected while you are, here is a simple script to run. Edit the
  56. 'hosts' array and add as many hosts as you want, starting at 1.
  57. - sample.cmd is included.
  58.  
  59.