Changeset 1126 for TI01-discovery
- Timestamp:
- 07/06/06 14:50:07 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI01-discovery/trunk/ingestAutomation/OAIBatch/oai_ingest.py
r1121 r1126 90 90 # Create/clear the directory for the processing copy of the difs. 91 91 if os.path.isdir("/usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery"): 92 commandline = " rm -f /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/*"92 commandline = "ls -1 /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/ | xargs -i rm -f {\}" 93 93 print "Executing : " + commandline 94 94 status = os.system(commandline) … … 140 140 # 141 141 #Once the pre-processing has finished remove the originals from the discovery directory: 142 commandline = "ls -1 usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/oai* | xargs -i rmusr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/{\}"142 commandline = "ls -1 /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/oai* | xargs -i rm /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/{\}" 143 143 print "Executing : " + commandline 144 144 status = os.system(commandline) … … 173 173 if status !=0: 174 174 sys.exit("Failed at creating backup directory %s" %this_backupdir) 175 175 176 commandline = "ls -1 /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/ | xargs -i cp /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/{\} " + this_backupdir 176 177 print "Executing : " + commandline … … 180 181 181 182 #Clear out the original harvest records area 182 commandline = "ls -1 " + harvest_home + " | xargs -i rm -f {\}"183 commandline = "ls -1 " + harvest_home + " | xargs -i rm -f " + harvest_home + "{\}" 183 184 print "Executing : " + commandline 184 185 status = os.system(commandline)
Note: See TracChangeset
for help on using the changeset viewer.