This is an old revision of the document!
In order to copy files directly from CASTOR to a machine in Zurich, first do
export LHCBPRODROOT=/disk/dirac
. ${LHCBPRODROOT}/gLite/external/etc/profile.d/grid-env.sh
. ${LHCBPRODROOT}/lcg/etc/profile.d/grid_compat_env.sh
export X509_CERT_DIR=/disk/dirac/gLite/external/etc/grid-security/certificates
grid-proxy-init
which will prepare your machine for file-transport. Then do (e.g.):
lcg-cp -v 'srm://srm-lhcb.cern.ch:8443/srm/managerv2?SFN=/castor/cern.ch/user/myInitial/myUsername/myFile' file://home/hep/decianm/myFile
The -v option just means verbose.
Note: You need a Grid Certificate to do this!