1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
#!/bin/bash
#
# This script is a part of SRM (V1) test suite. This is a wrapper script around
# rfcp, used to copy files to the remote machine (to TURL got from SRM
# server).
#
# $Id: my_rfcp_out.sh,v 1.8 2005/12/06 21:26:40 grodid Exp $
echo 'TURL:' $2
TURL_RFCP=`echo $2 | perl -pe 's;(.*?)://(.*)$;$2;g'`
TURL_RFCP=`echo $TURL_RFCP | perl -pe 's;//;:/;'`
if [ "$NEW_RFIO_SYNTAX" ]; then
TURL_RFCP=$2; ### For the NEW RFIOD 30/11/05
fi
echo 'TURL_rfcp: ' $TURL_RFCP
which rfcp
rfcp $1 $TURL_RFCP
exit $?
|