Changeset 741 for TI01-discovery
- Timestamp:
- 31/03/06 19:15:08 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI01-discovery/trunk/ingestAutomation/OAIBatch/oai_ingest.py
r721 r741 52 52 datacentre_config_file.close() 53 53 54 # The harvested_records directory 55 #harvest_home = "/home/tomcat/oai/WEB-INF/harvested_records/www.npm.ac.uk/8080/oai/provider/rsdas/dif" 54 if not os.path.isfile(harvest_home + "/*"): 55 print "Nothing to harvest this time from %s" %datacentre 56 sys.exit() 56 57 57 58 # The directory to put things for a tape backup (should already exist) … … 97 98 # The file config.properties contains the name=value pair to parse the filename in java oaiProc.jar. 98 99 # Copy the datacentre specific version of config to config.properties file. 99 # e.g. for bodc:-100 #cat bodc_config.properties101 # #### config.properties #######102 # Define host_OAI as the string that OAI adds to the filenames after harvesting103 # String added by OAI for BODC, SOC, NCAR104 # BODC = oai%3Agrid.bodc.nerc.ac.uk%3A105 # SOC = oai%3Aoai.noc.soton.ac.uk%3A106 # NCAR = oai%3Aucar.ncar.scd.cdp%3A107 108 #host_OAI=oai%3Agrid.bodc.nerc.ac.uk%3A109 #110 # ###########111 100 112 101 commandline = "cp /usr/local/WSClients/OAIBatch/" + datacentre +"_config.properties /usr/local/WSClients/OAIBatch/config.properties" … … 180 169 sys.exit("Failed at copying to backup directory %s" %this_backupdir) 181 170 182 171 #Clear out the original harvest records area 172 commandline = "rm -f " + harvest_home +"/*" 173 print "Executing : " + commandline 174 status = os.system(commandline) 175 if status !=0: 176 sys.exit("Failed at clearing out original harvest records area %s" %harvet_home) 177 183 178 184 179 print "======================================================"
Note: See TracChangeset
for help on using the changeset viewer.