Using stashcp and XrootD from OSG TensorFlow containers

OSG-built TensorFlow containers for CPU/GPUs are based on Ubuntu 16.04. You can follow the example below in order to use xrdcp and stashcp from inside these containers:


# Load the software
$ export LD_LIBRARY_PATH=/opt/xrootd/lib:$LD_LIBRARY_PATH
$ export PATH=/opt/xrootd/bin:/opt/StashCache/bin:$PATH


Now, to copy a  file inside /stash/user/khurtado/work/test.txt with either one of these tools, you can do:
$ xrdcp root://stash.osgconnect.net:1094//user/khurtado/work/test.txt .
$ stashcp /user/khurtado/work/test.txt .

You can also copy files (e.g.: tarballs) via wget by following this guide.