#!/bin/sh # run by cron to do Query on Hosts TMP_DIR=/tmp/Hosts if [ ! -d $TMP_DIR ] then mkdir $TMP_DIR fi QUERY=/usr/local/myNMS/bin/Query WWW_DIR=$HOME/www/Hosts if $QUERY Query=HOSTS --OUT=$TMP_DIR then if [ -s $TMP_DIR/Net_Index.html ] then mv $TMP_DIR/*.html $WWW_DIR fi fi