head 1.1; access ; symbols ; locks oasisa:1.1; strict; comment @# @; 1.1 date 2002.01.25.15.58.15; author oasisa; state Exp; branches ; next ; desc @@ 1.1 log @Initial revision @ text @#!/bin/csh # # Shell script to use 'pcomm' to talk to the OASIS mooring controller # # Currently, the connections are defined as follows # mooring:connection set noglob set connection=oasis set m1con=tnc set m2con=tnc if ( ($#argv == 0)) then echo "\nUsage - $0:t " echo "mooring: m2" echo " m1\n" exit 0 endif if ( ($#argv > 0)) then switch($argv[1]) case "tnc": set connection = tnc breaksw case "tnc2": set connection = tnc2 breaksw case "m1": set connection = $m1con breaksw case "m2": set connection = $m2con breaksw default: echo "\nUsage - $0:t " echo "mooring: m2" echo " m1\n" exit 0 breaksw endsw endif echo 'Using connection ' $connection cd /oasis/raw/logs /bin/more -d /oasis/ACCESS #/4s0/usr/local/bin/pcomm -f $connection pcomm -f '$connection' echo 'finished using connection ' $connection @