Go to the documentation of this file.00001
00002 import sys,os,commands
00003 from CommonMethods import *
00004
00005 class FileObj:
00006 def __init__(self):
00007 self.run = 0
00008 self.iovSince = 0
00009 self.fileName = ''
00010
00011
00012
00013 def main():
00014 payloadDir = "./Payloads_Repro2010Nov09/"
00015 aCommand = "ls " + payloadDir + " | grep BeamSpotObjects_2009_LumiBased_ | grep txt"
00016 output = commands.getstatusoutput( aCommand )
00017 listOfFiles = output[1].split('\n')
00018
00019 dropbox = "/DropBox"
00020 for fileName in listOfFiles:
00021 fileNameRoot = fileName[0:len(fileName)-4]
00022 print fileNameRoot
00023 uploadSqliteFile(payloadDir, fileNameRoot, dropbox)
00024
00025
00026
00027
00028 if __name__ == "__main__":
00029 main()