#! /bin/csh
#
# Do the rcp:
#
set err = 0
set remotedir = 'vishnu.hao.ucar.edu:tiegcm/tgcm14'
#set outfile   = 'rcp_test.out'
set outfile   = 'rcp_test.parallel_step.out'
if (! -e $outfile) then
  echo "WARNING: could not find outfile $outfile"
  exit 1
endif
rcp $outfile $remotedir/$outfile || set err = 1
if ($err == 0) then
  echo "Successful rcp of $outfile to $remotedir/$outfile"
else
  echo "Error return from the following rcp command:"
  echo "rcp $outfile $remotedir/$outfile"
endif
exit 0

