#!/bin/csh # # Shell script to use 'pcomm' to talk to the OASIS mooring controller # # Currently, the connections are defined as follows # mooring:connection # coasis script converted to pcomm+ script for the tsunami upgrade May 2006 # EBN set noglob set connection=dev_tnc set m1=tnc set m2=tnc2 if ( ($#argv == 0)) then echo "\nUsage - $0:t " echo "connection: m1|m2\n" exit 0 endif if ( ($#argv > 0)) then switch($argv[1]) case "m1": set connection = $m1 breaksw case "m2": set connection = $m2 breaksw default: echo "\nUsage - $0:t " echo "connection: m1|m2\n" exit 0 breaksw endsw endif cd /oasis/raw/logs /oasis/bin/logcoasis $connection /bin/more -d /oasis/ACCESS /usr/local/bin/pcomm -f $connection