This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
castor:transferzh [2010/07/05 14:54] – abuechle | castor:transferzh [2014/02/05 15:26] (current) – [How to] nchiap | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Copying Files from CASTOR to Zuerich directly ====== | ====== Copying Files from CASTOR to Zuerich directly ====== | ||
+ | ** Note: ** [[grid: | ||
+ | |||
===== How to ===== | ===== How to ===== | ||
- | In order to copy files directly from CASTOR to a machine in Zurich, login to the machine | + | In order to copy files directly from CASTOR to a machine in Zurich, login to the machine |
< | < | ||
- | export DIRAC_VOMSES=/ | + | lhcb-proxy-init |
- | export X509_VOMS_DIR=/ | + | |
- | export X509_CERT_DIR=/ | + | |
- | export MYSITEROOT=/ | + | |
- | export CMTCONFIG=slc4_ia32_gcc34 | + | |
- | . $MYSITEROOT/ | + | |
- | SetupProject LHCbDIRAC | + | |
</ | </ | ||
which will prepare for file-transport. | which will prepare for file-transport. | ||
Line 19: | Line 15: | ||
** Note: ** You need a Grid Certificate to do this! | ** Note: ** You need a Grid Certificate to do this! | ||
+ | |||
+ | |||
+ | ===== Multi-File Loop ===== | ||
+ | If you want to transfer several files, Create a file containing a list like this | ||
+ | <file txt files.txt> | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | Now you can use the following one-liner to get all the files | ||
+ | <code bash> | ||
+ | for f in `cat files.txt`; do lcg-cp -v srm:// | ||
+ | </ | ||
+ | '' | ||
===== Transfer with a Script ===== | ===== Transfer with a Script ===== |