File: my_rfcp_out.sh

package info (click to toggle)
dpm-postgres 1.7.4.7-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 13,788 kB
  • ctags: 10,782
  • sloc: ansic: 146,136; sh: 13,362; perl: 11,142; python: 5,529; cpp: 5,113; sql: 1,790; makefile: 955; fortran: 113
file content (26 lines) | stat: -rwxr-xr-x 523 bytes parent folder | download | duplicates (8)
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 $?