AminetAminet
Search:
84782 packages online
About
Recent
Browse
Search
Upload
Setup
Services

comm/tcp/netecho.lha

Mirror:Random
Showing: m68k-amigaos iconppc-amigaos iconppc-morphos iconi386-aros iconi386-amithlon iconppc-warpup iconppc-powerup icongeneric icon
No screenshot available
Short:Netecho checks if a host is available.
Author: atte at crash.north.de (Andreas Gelhausen)
Uploader:cosinus deepthought north de (Christian Stelter)
Type:comm/tcp
Architecture:m68k-amigaos
Date:1995-12-15
Download:comm/tcp/netecho.lha - View contents
Readme:comm/tcp/netecho.readme
Downloads:658

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


Contents of comm/tcp/netecho.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 2217    3500  63.3% -lh5- c00e Nov 28  1995 netecho/netecho
[generic]                  896    1998  44.8% -lh5- 2c90 Nov 28  1995 netecho/netecho.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         2 files    3113    5498  56.6%            Dec 15  1995
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>