home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / ping11.zip / readme.1st < prev   
Text File  |  1995-03-03  |  3KB  |  69 lines

  1. Archive Name: ping.zip
  2. Program Description: enhanced ping utility for TCP/IP, EMX 0.9a emxrt.zip req.
  3. Operating System Versions: OS/2 2.x with TCP/IP 2.0, Warp?
  4. Program Source: Jack Grey, org. source Public Domain from UC Berkeley
  5. Replaces:
  6.  
  7. Your name: Jack Grey
  8. Your email address: jackgrey@iglou.com
  9.  
  10. Proposed directory for placement: /os2/network/tcpip
  11.  
  12. Built March 1995
  13.  
  14. Compiled with the GNU C Compiler version 2.6.3 for EMX 0.9a with EMX
  15. libraries at patch level 2. The EMX .DLL files are required and may be
  16. found at various sites under the name emxrt.zip.
  17.  
  18. ----------------------------------------------------------------------------
  19.  
  20. DISCLAIMER:
  21. -----------
  22.  
  23. In consideration of the use of this program, all USERS ACKNOWLEDGE
  24. THAT THERE ARE NO WARRANTIES AS TO MERCHANTABILITY OR FITNESS FOR
  25. A PARTICULAR PURPOSE AND USERS ACCEPT THE RESPONSIBILITY TO TAKE
  26. SUCH STEPS AS THEY DEEM NECESSARY TO PROTECT THEIR SYSTEMS AND DATA.
  27. THE AUTHOR CANNOT BE LIABLE FOR ANY LOSSES OCCURRING AS A RESULT OF
  28. THE USE OF THIS PROGRAM.
  29.  
  30. YOU USE THIS PROGRAM ENTIRELY AT YOUR OWN RISK.
  31.  
  32. ----------------------------------------------------------------------------
  33.  
  34. This is a very minor enhancement of a rather full-featured version of ping.
  35. My most minor contribution was to port it to OS/2 and add an errorlevel
  36. return facility; if no reply frames are received ( the target does not
  37. respond to ping ) errorlevel 1 is returned; if at least one reply is
  38. received errorlevel 0 is returned. This allows the program to be used in
  39. .cmd files to test whether or not a connection/host is reachable, as follows
  40. in pseudo-code resembling a .cmd file:
  41.  
  42. :pingloop
  43. ping -c 1 -s 1 -n -q somehost
  44. if errorlevel 1 goto nohost
  45. sleep forawhile
  46. goto pingloop
  47.  
  48. :nohost
  49. echo 'somehost' does not respond to ping!
  50.  
  51.  
  52. For a full explanation of the parameters, see pingman.txt, a text version of
  53. the man page that came with the source. The man page, ping.man, is also
  54. included. The orginal program has many nice features, in particular route
  55. tracing. I have also added the -w parameter to adjust the wait-for-response
  56. time from the default of 10 seconds; this is useful on slow, congested links,
  57. such as a SLIP connection with other traffic active.
  58.  
  59. You will probably want to either rename the ping.exe that came with your
  60. IBM TCP/IP or rename this program to something like pingrc.exe.
  61.  
  62. The modified C source is in ping.c, the original source in ping.org. A
  63. makefile for GNU make is also included.
  64.  
  65. This program is distributed as ThankYouWare - if you find it useful, drop me
  66. an email. If you find any bugs, drop me a note as well; I did this as a
  67. quickie for my own use but might have time to fix a few things.
  68.  
  69.