#! /bin/sh # quick hack to check for new zones on the network # Rex Sanders, USGS Pacific Marine Geology, 8-92 /usr/local/cap/bin/getzones | sort -f > /tmp/checkzones.$$ if ( cmp -s /usr/local/cap/etc/zone.list /tmp/checkzones.$$ ) then true else diff -c1 /usr/local/cap/etc/zone.list /tmp/checkzones.$$ | \ mail -s "AppleTalk Zone Change" rex cat /tmp/checkzones.$$ > /usr/local/cap/etc/zone.list fi rm -f /tmp/checkzones.$$