Changeset 1076 for TI01-discovery
- Timestamp:
- 31/05/06 18:31:51 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI01-discovery/trunk/ingestAutomation/OAIBatch/oai_ingest.py
r1066 r1076 19 19 # 12/05/06 SEL spelling correction 20 20 # 30/05/06 SEL cope with many files for processing."Argument list too long" problem. 21 # 21 # 31/05/06 SEL need to use passwords now. (replace xxxxxx in real version). 22 22 23 23 import os … … 69 69 # Create/clear the directory for a pristine copy of the difs in case the script rewrites something wrong 70 70 if os.path.isdir("/usr/local/WSClients/OAIBatch/data/" + datacentre +"/oai/difcopy"): 71 commandline = "ls -1 /usr/local/WSClients/OAIBatch/data/" + datacentre +"/oai/difcopy/ *| xargs -i rm /usr/local/WSClients/OAIBatch/data/" + datacentre +"/oai/difcopy/{\}"71 commandline = "ls -1 /usr/local/WSClients/OAIBatch/data/" + datacentre +"/oai/difcopy/ | xargs -i rm /usr/local/WSClients/OAIBatch/data/" + datacentre +"/oai/difcopy/{\}" 72 72 print "Executing : " + commandline 73 73 status = os.system(commandline) … … 147 147 148 148 # ingest the datacentres records into eXist db (backups of exist happen nightly). 149 commandline = "client.sh -c /db/dif/" + datacentre + " - p /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/"149 commandline = "client.sh -c /db/dif/" + datacentre + " -u admin -P xxxxxx -p /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/" 150 150 print "Executing : " + commandline 151 151 status = os.system(commandline)
Note: See TracChangeset
for help on using the changeset viewer.