import os myhome = "/afs/cern.ch/user/e/egraveri/" eos = "/afs/cern.ch/project/eos/installation/0.3.15/bin/eos.select" for i in xrange(691, 700): os.system(eos+" cp /eos/ship/data/neutrinoBackground/neutrino%s/ship.10.0.Genie-TGeant4.root "%(i)+myhome+"ship.10.0.Genie-TGeant4_n%s.root"%(i)) for i in xrange(681, 690): os.system(eos+" cp /eos/ship/data/neutrinoBackground/neutrino%s/ship.10.0.Genie-TGeant4.root "%(i)+myhome+"ship.10.0.Genie-TGeant4_n%s.root"%(i)) os.system(eos+" cp /eos/ship/data/neutrinoBackground/neutrino681/geofile_full.10.0.Genie-TGeant4.root "+myhome+"geofile_full.10.0.Genie-TGeant4_n681.root") os.system(eos+" cp /eos/ship/data/neutrinoBackground/neutrino691/geofile_full.10.0.Genie-TGeant4.root "+myhome+"geofile_full.10.0.Genie-TGeant4_n691.root")