Write a shell script (in any shell you like) with the following descriptions:CS476/576
Assignment #1
Due Midnight, Tuesday Sept 21, 1999
NAME
SYNOPSIS
HoD - Hosts Discovery
HoD <A.B> <XMin> <XMax> <YMin> <YMax> <DomainName>DESCRIPTION
For each host in the AllHosts
file
the program tries to "ping" it to see
if the host is "alive" and
saves the names of those alive hosts in a file
called AliveHosts.
For each host in AliveHosts
file
the program tries to "telnet" to it to
see if the host runs a telnet
server and saves the names of those "telnet able"
hosts in a file called TelnetHosts.
Example: %
HoD 128.82 2 9 1 255 '\.cs.odu.edu' 2>& /dev/null
The \. is used to avoid matching
physics.odu.edu, and 2>& /dev/null
is used to through away all error
messages (if you don't like to see them).
The results of running my script
on "Sun Aug 29 11:35:48 EDT 1999"
are files:
AllHosts AliveHosts
TelnetHosts
nslookup, grep, ping,
telnet.