17 if __name__ ==
'__main__':
21 if len(sys.argv)>1: subtype = sys.argv[1]
22 if len(sys.argv)>2: argstr = sys.argv[2]
27 reffile =
'data/atlas.atlcal.last'
28 if not os.path.isfile(reffile)
or (time.time()-os.path.getmtime(reffile))/3600.>24.:
29 subprocess.Popen(
'wget -o data/wget.log http://castor.web.cern.ch/castor/DiskPoolDump/atlas.atlcal.last -O %s' % (reffile), shell=
True).wait()
31 dsnamesAndAge = argstr.split(
',')
33 for dsnameAndAge
in dsnamesAndAge:
35 dsname, sep, age = dsnameAndAge.partition(
'@')
36 subprocess.Popen(
'python2.5 grepfile.py %s %s %s' % (dsname, age, reffile), shell=
True)