ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/yiiyama/Toolset/scripts/t2tools
Revision: 1.1
Committed: Mon Oct 15 09:28:43 2012 UTC (12 years, 6 months ago) by yiiyama
Branch: MAIN
Log Message:
*** empty log message ***

File Contents

# Content
1 which voms-proxy-init 2>/dev/null || source /afs/cern.ch/cms/LCG/LCG-2/UI/cms_ui_env.sh
2
3 voms-proxy-init -voms cms
4
5 t2ls(){
6 path=$1
7 srmls srm://srm-dcache.rcac.purdue.edu:8443/srm/v2/server?SFN=/mnt/hadoop/store/user/yiiyama/${path}
8 }
9
10 t2up(){
11 local=$PWD/$1
12 remote=$2
13 lcg-cp -b -D srmv2 file://${local} srm://srm-dcache.rcac.purdue.edu:8443/srm/v2/server?SFN=/mnt/hadoop/store/user/yiiyama/${remote}
14 }
15
16 t2down(){
17 remote=$1
18 local=$PWD/$2
19 lcg-cp -b -D srmv2 srm://srm-dcache.rcac.purdue.edu:8443/srm/v2/server?SFN=/mnt/hadoop/store/user/yiiyama/${remote} file://${local}
20 }
21
22 t2rm(){
23 remote=$1
24 lcg-del -b -l -D srmv2 srm://srm-dcache.rcac.purdue.edu:8443/srm/v2/server?SFN=/mnt/hadoop/store/user/yiiyama/${remote}
25 }