netecho
Netecho checks if a host is available.
Short: Netecho checks if a host is available.
Author: atte@crash.north.de (Andreas Gelhausen)
Uploader: cosinus deepthought north de (Christian Stelter)
Type: comm/tcp
Architecture: m68k-amigaos
System requirements: Kickstart 2.04+ and AmiTCP 4.0+
Usage
=====
netecho is based on the TCP/IP service 'echo' and it's useful to
check the availability of a certain host within scripts. If the given
host is available, the string 'NETECHO' will be printed and the return
value is set to 0 (RETURN_OK). Otherwise an error message is printed
and the return value is set to 20 (RETURN_FAIL).
Usage:
netecho <hostname>
Example:
netecho crash.north.de
Example script 1:
failat 21
netecho >nil: crash.north.de
if warn
echo "crash.north.de is not available!"
else
echo "crash is alive! =¦^)"
endif
Example script 2:
failat 21
if "`netecho crash.north.de`" eq "NETECHO"
echo "crash is alive! =¦^)"
else
echo "crash.north.de is not available!"
endif
Gratis
Desde el Amiga: abre Hangar y busca netecho.
| Autor | atte@crash.north.de (Andreas Gelhausen) |
|---|---|
| Categoría | comm/tcp |
| Tamaño | 3 KB |
| Para | m68k-amigaos |
| Origen | Aminet |