#!/bin/csh

set ncmd = $#argv
echo "Argument count = $ncmd"

#-----------------------------------
#  check for msrcp
#-----------------------------------
which msrcp >& /dev/null
if( $status ) then
   exit -1
endif

if( $ncmd >= 3 ) then
  set cmd = ""
  set args = ($argv)
  foreach argument ($args)
    set cmd = `echo $cmd $argument`
  end
  echo "$0 will issue the following command"
  echo $cmd
else
   exit -2
endif

exit 0
