home *** CD-ROM | disk | FTP | other *** search
- Archive Name: ping.zip
- Program Description: enhanced ping utility for TCP/IP, EMX 0.9a emxrt.zip req.
- Operating System Versions: OS/2 2.x with TCP/IP 2.0, Warp?
- Program Source: Jack Grey, org. source Public Domain from UC Berkeley
- Replaces:
-
- Your name: Jack Grey
- Your email address: jackgrey@iglou.com
-
- Proposed directory for placement: /os2/network/tcpip
-
- Built March 1995
-
- Compiled with the GNU C Compiler version 2.6.3 for EMX 0.9a with EMX
- libraries at patch level 2. The EMX .DLL files are required and may be
- found at various sites under the name emxrt.zip.
-
- ----------------------------------------------------------------------------
-
- DISCLAIMER:
- -----------
-
- In consideration of the use of this program, all USERS ACKNOWLEDGE
- THAT THERE ARE NO WARRANTIES AS TO MERCHANTABILITY OR FITNESS FOR
- A PARTICULAR PURPOSE AND USERS ACCEPT THE RESPONSIBILITY TO TAKE
- SUCH STEPS AS THEY DEEM NECESSARY TO PROTECT THEIR SYSTEMS AND DATA.
- THE AUTHOR CANNOT BE LIABLE FOR ANY LOSSES OCCURRING AS A RESULT OF
- THE USE OF THIS PROGRAM.
-
- YOU USE THIS PROGRAM ENTIRELY AT YOUR OWN RISK.
-
- ----------------------------------------------------------------------------
-
- This is a very minor enhancement of a rather full-featured version of ping.
- My most minor contribution was to port it to OS/2 and add an errorlevel
- return facility; if no reply frames are received ( the target does not
- respond to ping ) errorlevel 1 is returned; if at least one reply is
- received errorlevel 0 is returned. This allows the program to be used in
- .cmd files to test whether or not a connection/host is reachable, as follows
- in pseudo-code resembling a .cmd file:
-
- :pingloop
- ping -c 1 -s 1 -n -q somehost
- if errorlevel 1 goto nohost
- sleep forawhile
- goto pingloop
-
- :nohost
- echo 'somehost' does not respond to ping!
-
-
-
- In this example, errorlevel 1 is returned if somehost doesn't respond in
- 1 second or less:
-
- ping -c 1 -s -1 -q -w 1 somehost
-
-
-
- For a full explanation of the parameters, see pingman.txt, a text version of
- the man page that came with the source. The man page, ping.man, is also
- included. The orginal program has many nice features, in particular route
- tracing.
-
- I have added the -w parameter to adjust the wait-for-response time
- from the default of 10 seconds; this is useful on slow/congested links,
- such as a SLIP connection with other traffic active. I have also made
- verbose usage displayable by the -? option.
-
- You will probably want to either rename the ping.exe that came with your
- IBM TCP/IP or rename this program to something like pingrc.exe.
-
- The modified C source is in ping.c, the original source in ping.org. A
- makefile for GNU make is also included.
-
- This program is distributed as ThankYouWare - if you find it useful, drop me
- an email. If you find any bugs, drop me a note as well; I did this as a
- quickie for my own use but might have time to fix a few things.
-
-