[csfc] ~ % klog olaiya@slac.stanford.edu Password:***** [csfc] ~ % cp /home/csf/olaiya/file.root /afs/slac.stanford.edu/u/br/olaiya/.
[csfc] ~ % scp /home/csf/olaiya/file.root olaiya@noric.slac.stanford.edu:.To copy multiple files from the remote server, you have to put the '*' within speech marks to prevent it being expanded on the command line:
[csfc] ~ % scp "olaiya@noric.slac.stanford.edu:*.root" /home/csf/olaiya/.For more information type "man scp"
[csfmove01] ~ % bbftp -e "put file.root" -u olaiya -s -p 5 yakut01.slac.stanford.eduThe -s flag remotely starts the bbftpd demon, -p selects how many parallel streams are used during the transfer.
You can transfer multiple files in one command as follows:
[csfmove01] ~ % bbftp -e "mput *.root" -u olaiya -s -p 5 yakut01.slac.stanford.eduFuthermore you can put your transfer actions in a control file and access it using the -i flag:
[csfmove01] ~ % bbftp -i ctrlfile -u olaiya -s -p 5 yakut01.slac.stanford.eduWhere the ctrlfile contains the following
[csfmove01] ~ % less ctrlfile lcd /home/csf/olaiya/rootfiles cd /afs/slac.stanford.edu/g/babar/work/o/olaiya/rootfiles setoption gzip mput *rootlcd and cd changes directory on the local and remote hosts respectivley. setoption gzip compresses files before transfer. In the case of ROOT files this does not offer any advantage as ROOT files are already significantly compressed.
For more information type "man bbftp". Additionally yo can go to the bbftp web site