#!/bin/sh # /usr/scripts/abx # # Shell script: abx # # Author: Kevin FitzGerrell # # Typically initiated by operator from DCS, uses iccprt to # extract station info from AB stations to file {station}.blocks. # STATION=$1 cd /usr/scripts GOOD=`grep -i -c "^$1$" station.lst` if [ $GOOD -eq 1 ] then if [ $STATION = 'cpgrnd' -o $STATION = 'CPGRND' ] then echo "Not valid with CP's, use only for AB stations" else echo "Processing station:" ${STATION} cd /opt/fox/ciocfg/api iccprt -p -o /usr/scripts/${STATION}.blocks ${STATION} echo "Done processing" fi else echo "Not a valid station name" fi