CIS 2279 Homework Assignment #13
Due Monday, Dec 8,
2008
All files created must be saved in your class directory
/mnt/homes/CLASSES/CIS2279/<username>
- Create a perl script named lab13.pl in your user directory. The
script must perform the following operations (5 points each):
- Retrieve a list of host names using the command
ypcat hosts.
- Test each hostname found in the file to determine if they are
available on the network.
- Create a list for the hostnames that are available and a
separate list of those hosts which are unavailable.
- Print the names of the available hosts to the screen.
- Email the names of the unavailble hosts to your email
address with some descriptive text. Use lscmail.lsc.vsc.edu as the SMTP host.
solution
last updated: 09 Dec 2008 16:05