Section: CSLib Utilities (1)
Updated: April 20, 2002
Return to Main Contents
isup - Find out if a machine is up by trying a TCP/IP connection
[ -p ] host [ port ]
tries to create a TCP/IP connection to host (optionally on port
port, default is TCP 7, i.e. echo). If the machine is up (i.e.
the connection is accepted, or refused), then zero (success) is returned.
A non-zero error code is returned if the connection fails.
Also print out an explanatory line of whether the machine is available
or not, and if not, what the error was.
was written by Alan Ford.
- SEE ALSO