Changeset 1076 for TI01-discovery/trunk


Ignore:
Timestamp:
31/05/06 18:31:51 (13 years ago)
Author:
selatham
Message:

putting in pwd protection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/trunk/ingestAutomation/OAIBatch/oai_ingest.py

    r1066 r1076  
    1919# 12/05/06 SEL spelling correction 
    2020# 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). 
    2222 
    2323import os 
     
    6969# Create/clear the directory for a pristine copy of the difs in case the script rewrites something wrong 
    7070if 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/{\}" 
    7272    print "Executing : " + commandline 
    7373    status = os.system(commandline) 
     
    147147 
    148148# 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/" 
     149commandline = "client.sh -c /db/dif/" + datacentre + " -u admin -P xxxxxx -p /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/" 
    150150print "Executing : " + commandline 
    151151status = os.system(commandline) 
Note: See TracChangeset for help on using the changeset viewer.